summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2023-04-17 07:05:02 +0200
committerThomas Haller <thaller@redhat.com>2023-05-12 12:42:55 +0200
commit066720991386bb323a624cd55b2bcc41627593c2 (patch)
tree1e21f1f5c50663401f634a4dd1e9cb1269a00bb2
parent63452e886f62c8051f29a2130bac772474cdbe0f (diff)
downloadNetworkManager-066720991386bb323a624cd55b2bcc41627593c2.tar.gz
test-client: hardcode the cloud-setup mac addresses
We rely on the predictable but random MAC addresses. Hardcode them instead -- the mock service also hardcodes them.
-rwxr-xr-xsrc/tests/client/test-client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py
index 3077f21e32..f5989d49cd 100755
--- a/src/tests/client/test-client.py
+++ b/src/tests/client/test-client.py
@@ -2201,7 +2201,7 @@ class TestNmCloudSetup(TestNmClient):
def test_ec2(self):
# Add a device with an active connection that has IPv4 configured
- self.srv.op_AddObj("WiredDevice", iface="eth0")
+ self.srv.op_AddObj("WiredDevice", iface="eth0", mac="9e:c0:3e:92:24:2d")
self.srv.addAndActivateConnection(
{
"connection": {"type": "802-3-ethernet", "id": "con-eth0"},
@@ -2212,7 +2212,7 @@ class TestNmCloudSetup(TestNmClient):
)
# The second connection has no IPv4
- self.srv.op_AddObj("WiredDevice", iface="eth1")
+ self.srv.op_AddObj("WiredDevice", iface="eth1", mac="53:e9:7e:52:8d:a8")
self.srv.addAndActivateConnection(
{"connection": {"type": "802-3-ethernet", "id": "con-eth1"}},
"/org/freedesktop/NetworkManager/Devices/2",