Merge pull request #13653 from rallytime/cloud_config_tests

One more cloud config unit test
This commit is contained in:
Joseph Hall 2014-06-23 12:30:28 -06:00
commit fa2c1f5eef

View File

@ -550,6 +550,16 @@ class ConfigTestCase(TestCase, integration.AdaptedConfigurationTestCaseMixIn):
self.assertRaises(SaltCloudConfigError, sconfig.cloud_config, PATH,
providers_config_path='bar')
# apply_vm_profiles_config tests
def test_apply_vm_profiles_config_bad_profile_format(self):
'''
Tests passing in a bad profile format in overrides
'''
overrides = {'foo': 'bar', 'conf_file': PATH}
self.assertRaises(SaltCloudConfigError, sconfig.apply_vm_profiles_config,
PATH, overrides, defaults=DEFAULT)
# apply_cloud_providers_config tests
def test_apply_cloud_providers_config_same_providers(self):