Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions tests/unittests/test_datasource/test_ovf.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,16 @@ def test_get_data_vmware_seed_platform_info(self):
'vmware (%s/seed/ovf-env.xml)' % self.tdir,
ds.subplatform)

def test_get_data_vmware_guestinfo_with_network_config(self):
@mock.patch('cloudinit.subp.subp')
@mock.patch('cloudinit.sources.DataSource.persist_instance_data')
def test_get_data_vmware_guestinfo_with_network_config(
self, m_persist, m_subp
):
self._test_get_data_with_network_config(guestinfo=False, iso=True)

def test_get_data_iso9660_with_network_config(self):
@mock.patch('cloudinit.subp.subp')
@mock.patch('cloudinit.sources.DataSource.persist_instance_data')
def test_get_data_iso9660_with_network_config(self, m_persist, m_subp):
self._test_get_data_with_network_config(guestinfo=True, iso=False)

def _test_get_data_with_network_config(self, guestinfo, iso):
Expand Down