

def test_default_kvm_profile(self):
    '\n        Test virt.get_profiles with the KVM profile\n        '
    profiles = self.run_function('virt.get_profiles', ['kvm'])
    nicp = profiles['nic']['default']
    self.assertTrue((nicp[0].get('model', '') == 'virtio'))
    self.assertTrue((nicp[0].get('source', '') == 'br0'))
    diskp = profiles['disk']['default']
    self.assertTrue((diskp[0]['system'].get('model', '') == 'virtio'))
    self.assertTrue((diskp[0]['system'].get('format', '') == 'qcow2'))
    self.assertTrue((diskp[0]['system'].get('size', '') == '8192'))

dataset/ETHPy150Open saltstack/salt/tests/integration/modules/virt.py VirtTest.test_default_kvm_profile/original