mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Merge pull request #13653 from rallytime/cloud_config_tests
One more cloud config unit test
This commit is contained in:
commit
fa2c1f5eef
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user