mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 10:40:58 +01:00
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.
This commit is contained in:
parent
63452e886f
commit
0667209913
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue