Remove this test, it is no longer illegal to leave out image

and clonefrom parameters.  It is possible to create a VM from scratch.
This commit is contained in:
C. R. Oldham 2016-10-25 15:23:32 -06:00
parent c2b158af89
commit 6a7eab9e16

View File

@ -847,32 +847,6 @@ class VMwareTestCase(ExtendedTestCase):
self.assertEqual(config.is_profile_configured(vmware.__opts__, 'vcenter01:vmware',
'base-gold', vm_=vm_), True)
@patch('salt.config.log')
def test_no_clonefrom_or_image_expect_fail(self, log_mock):
'''
Tests that not including the clonefrom property will result in an invalid profile
'''
profile_additions = {}
provider_config = deepcopy(PROVIDER_CONFIG)
profile = deepcopy(PROFILE)
profile['base-gold'].update(profile_additions)
provider_config_additions = {
'profiles': profile
}
provider_config['vcenter01']['vmware'].update(provider_config_additions)
vm_ = {'profile': profile}
with patch.dict(vmware.__opts__, {'providers': provider_config}, clean=True):
self.assertEqual(config.is_profile_configured(vmware.__opts__, 'vcenter01:vmware',
'base-gold', vm_=vm_), False)
self.assertEqual(log_mock.error.call_args[0][0],
"The required '{0}' configuration setting is missing from "
"the '{1}' profile, which is configured under the '{2}' "
'alias.'.format('clonefrom', 'base-gold', 'vcenter01'))
@patch('salt.cloud.clouds.vmware.randint', return_value=101)
def test_add_new_ide_controller_helper(self, randint_mock):
'''