diff options
| author | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:23 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2026-07-03 19:53:23 +0200 |
| commit | aa308069bebf2d5a3200728caa69a76137c03d8b (patch) | |
| tree | c0ba2281e801c4720a0d8a5e5ee943688234f088 /src/tests/client/test-client.py | |
| parent | 0a4b2c29da4ccf259bbcea3298d15abebb94348f (diff) | |
| parent | 537bfce2bda471c92caabd388589230200891509 (diff) | |
Update upstream source from tag 'upstream/1.58_rc1'
Update to upstream version '1.58~rc1' with Debian dir 451489c9234e2b6b7c2f41ca6670287ea3ac3efd
Diffstat (limited to 'src/tests/client/test-client.py')
| -rwxr-xr-x | src/tests/client/test-client.py | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py index 6cf1924c..3d618e35 100755 --- a/src/tests/client/test-client.py +++ b/src/tests/client/test-client.py @@ -1557,9 +1557,9 @@ class TestNmcli(unittest.TestCase): # does not enforce the ifnames are unique. self.ctx.srv.op_AddObj("WifiDevice", ident="wlan1/x", iface="wlan1") - self.ctx.srv.op_AddObj("WifiAp", device="wlan0", rsnf=0x0) + self.ctx.srv.op_AddObj("WifiAp", device="wlan0", rsnf=0x0, freq=2437) - self.ctx.srv.op_AddObj("WifiAp", device="wlan0") + self.ctx.srv.op_AddObj("WifiAp", device="wlan0", freq=5220) NM_AP_FLAGS = getattr(NM, "80211ApSecurityFlags") rsnf = 0x0 @@ -1568,7 +1568,7 @@ class TestNmcli(unittest.TestCase): rsnf = rsnf | NM_AP_FLAGS.GROUP_TKIP rsnf = rsnf | NM_AP_FLAGS.GROUP_CCMP rsnf = rsnf | NM_AP_FLAGS.KEY_MGMT_SAE - self.ctx.srv.op_AddObj("WifiAp", device="wlan0", wpaf=0x0, rsnf=rsnf) + self.ctx.srv.op_AddObj("WifiAp", device="wlan0", wpaf=0x0, rsnf=rsnf, freq=6595) self.ctx.srv.op_AddObj("WifiAp", device="wlan1") @@ -2222,6 +2222,41 @@ class TestNmcli(unittest.TestCase): replace_stdout=replace_uuids, ) + @nm_test + def test_005(self): + self.init_001() + + replace_uuids = [] + + replace_uuids.append( + self.ctx.srv.ReplaceTextConUuid( + "con-xx1", "UUID-con-xx1-REPLACED-REPLACED-REPLA" + ) + ) + + # Check the warning about unreachable gateways + self.call_nmcli( + [ + "c", + "add", + "type", + "ethernet", + "ifname", + "eth0", + "con-name", + "con-xx1", + "ipv4.method", + "manual", + "ipv4.addresses", + "192.168.1.1/24", + "ipv4.gateway", + "192.168.2.1", + "ipv4.routes", + "192.168.4.4 192.168.4.1", + ], + replace_stdout=replace_uuids, + ) + @nm_test_no_dbus def test_offline(self): # Make sure we're not using D-Bus |