mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Update the mocked cloud configs to also include master configs
The master configs are injected into the cloud configs, and we need them here in order to get the `user` default for the parsers test.
This commit is contained in:
parent
f2c8cb13d0
commit
74a417e527
@ -850,8 +850,12 @@ class SaltCloudParserTestCase(LogSettingsParserTests):
|
||||
# Set mandatory CLI options
|
||||
self.args = ['-p', 'foo', 'bar']
|
||||
|
||||
# Set defaults
|
||||
self.default_config = salt.config.DEFAULT_CLOUD_OPTS
|
||||
# Set default configs
|
||||
# Cloud configs are merged with master configs in
|
||||
# config/__init__.py, so we'll do that here as well
|
||||
# As we need the 'user' key later on.
|
||||
self.default_config = salt.config.DEFAULT_MASTER_OPTS.copy()
|
||||
self.default_config.update(salt.config.DEFAULT_CLOUD_OPTS)
|
||||
|
||||
# Log file
|
||||
self.log_file = '/tmp/salt_cloud_parser_test'
|
||||
|
Loading…
Reference in New Issue
Block a user