about summary refs log tree commit diff
path: root/debian/tests
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2021-07-02 10:52:31 +0200
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>2021-07-02 14:50:59 +0200
commit16dde302d586a84b34dc74099058117472017203 (patch)
tree70ace427959ab2c0ef0754e2f937523dd2ce9a1d /debian/tests
parent87d561d6da5da533c55e8c470968ac4990f33a5b (diff)
d/t/nm.py: adapt to changes dnsmasq behavior (LP: #1894619)
As described and discussed in (LP: #1894619) the behavior of dnsmasq
has changes. After reverting that for a while upstream confirmed
that - at least for the configuration our test uses - this is the
intended and wanted behavior.

Due to that dnsmasq now (Impish) follows upstream and therefore
the test in NM needs to be adapted to tolerate that new behavior.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/tests')
-rwxr-xr-xdebian/tests/nm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/tests/nm.py b/debian/tests/nm.py
index f4fe46d6..529f4cb4 100755
--- a/debian/tests/nm.py
+++ b/debian/tests/nm.py
@@ -357,7 +357,7 @@ class NetworkManagerTest(network_test_base.NetworkTestBase):
                 expected_ip_a.append('inet6 2600::[0-9a-f]+/')
             else:
                 # has address with our prefix and MAC
-                expected_ip_a.append('inet6 2600::[0-9a-f:]+/64 scope global (?:tentative )?(?:mngtmpaddr )?(?:noprefixroute )?dynamic')
+                expected_ip_a.append('inet6 2600::[0-9a-f:]+/64 scope global (?:tentative )?(?:mngtmpaddr )?(?:noprefixroute )?(dynamic|\n\s*valid_lft forever preferred_lft forever)')
                 # has address with our prefix and random IP (Privacy
                 # Extension), if requested
                 priv_re = 'inet6 2600:[0-9a-f:]+/64 scope global temporary (?:tentative )?(?:mngtmpaddr )?dynamic'