Skip to content

Commit

Permalink
test: Updated p2p unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Nov 13, 2024
1 parent c6ecb9f commit 6878bae
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion t/tasks/deploy/p2p.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,19 @@ my @tests = (
]
},
{
name => '192.168.2.254/24',
name => '192.168.1.1/24',
address => { ip => '192.168.1.1', mask => '255.255.255.0' },
result => [
'192.168.1.2',
'192.168.1.3',
'192.168.1.4',
'192.168.1.5',
'192.168.1.6',
'192.168.1.7'
]
},
{
name => '192.168.2.253/24',
address => { ip => '192.168.2.253', mask => '255.255.255.0' },
result => [
'192.168.2.248',
Expand All @@ -75,6 +87,18 @@ my @tests = (
'192.168.2.254'
]
},
{
name => '192.168.2.254/24',
address => { ip => '192.168.2.254', mask => '255.255.255.0' },
result => [
'192.168.2.248',
'192.168.2.249',
'192.168.2.250',
'192.168.2.251',
'192.168.2.252',
'192.168.2.253'
]
},
{
name => '192.168.3.1/22',
address => { ip => '192.168.3.1', mask => '255.255.252.0' },
Expand Down

0 comments on commit 6878bae

Please sign in to comment.