summary refs log tree commit diff
path: root/src/tests/client/test-client.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/client/test-client.py')
-rwxr-xr-xsrc/tests/client/test-client.py41
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