Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fernando Fernández Mancera
NetworkManager-ci
Commits
1b35637e
Commit
1b35637e
authored
Nov 24, 2021
by
Ana Cabral
Committed by
Ana Cabral
Nov 26, 2021
Browse files
ipv4_spurious_leftover_route test: remove needed adjust to fail scenarios
https://bugzilla.redhat.com/show_bug.cgi?id=2005013
parent
5aed936d
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/scenarios/ipv4.feature
View file @
1b35637e
...
...
@@ -2203,6 +2203,7 @@ Feature: nmcli: ipv4
@rhbz1979192
@ver+=1.32.6
@ver-=1.32.8
@con_ipv4_remove
@teardown_testveth
@ipv4_spurious_leftover_route
Scenario
:
NM - ipv4 - NetworkManager configures wrong, spurious "local" route for IP address after DHCP address change
...
...
@@ -2227,3 +2228,27 @@ Feature: nmcli: ipv4
*
Execute
"sleep 1; ip l set testX6 up"
When
"192.168.99.5"
is visible with command
"ip -4 r show table all dev testX6 scope link"
in
"60"
seconds
Then
"192.168.99.[34]"
is not visible with command
"ip -4 r show table all dev testX6 scope link"
@rhbz1979192
@ver+=1.32.10
@con_ipv4_remove
@teardown_testveth
@ipv4_spurious_leftover_route
Scenario
:
NM - ipv4 - NetworkManager configures wrong, spurious "local" route for IP address after DHCP address change
*
Prepare simulated test
"testX6"
device without DHCP
*
Execute
"ip -n testX6_ns addr add dev testX6p 192.168.99.1/24"
*
Run child
"ip netns exec testX6_ns dnsmasq --pid-file=/tmp/testX6_ns.pid --listen-address=192.168.99.1 --conf-file=/dev/null --no-hosts --dhcp-range=192.168.99.30,192.168.99.39,2m"
without shell
*
Add a new connection of type
"ethernet"
and options
"ifname testX6 con-name testX6"
*
Bring
"up"
connection
"testX6"
*
Execute
"pkill -F /tmp/testX6_ns.pid"
*
Execute
"ip l set testX6 down"
*
Run child
"ip netns exec testX6_ns dnsmasq --pid-file=/tmp/testX6_ns.pid --listen-address=192.168.99.1 --conf-file=/dev/null --no-hosts --dhcp-range=192.168.99.40,192.168.99.49,2m"
without shell
*
Execute
"ip l set testX6 up"
When
"192.168.99.4"
is visible with command
"ip -4 r show table all dev testX6 scope link"
in
"60"
seconds
Then
"192.168.99.3"
is not visible with command
"ip -4 r show table all dev testX6 scope link"
*
Execute
"pkill -F /tmp/testX6_ns.pid"
*
Execute
"ip l set testX6 down"
*
Run child
"ip netns exec testX6_ns dnsmasq --pid-file=/tmp/testX6_ns.pid --listen-address=192.168.99.1 --conf-file=/dev/null --no-hosts --dhcp-range=192.168.99.50,192.168.99.59,2m"
without shell
*
Execute
"ip l set testX6 up"
When
"192.168.99.5"
is visible with command
"ip -4 r show table all dev testX6 scope link"
in
"60"
seconds
Then
"192.168.99.[34]"
is not visible with command
"ip -4 r show table all dev testX6 scope link"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment