test-client: factor out the test device setup

We're going to reuse the setup for tests of other cloud providers.
This commit is contained in:
Lubomir Rintel 2023-04-17 07:05:44 +02:00 committed by Thomas Haller
parent 0667209913
commit e56df68464
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -2197,9 +2197,7 @@ class TestNmCloudSetup(TestNmClient):
return f
@cloud_setup_test
def test_ec2(self):
def _mock_devices(self):
# Add a device with an active connection that has IPv4 configured
self.srv.op_AddObj("WiredDevice", iface="eth0", mac="9e:c0:3e:92:24:2d")
self.srv.addAndActivateConnection(