Merge pull request #53590 from twangboy/fix_test_status

Fix `test status` on Windows
This commit is contained in:
Shane Lee 2019-07-06 09:15:12 -06:00 committed by GitHub
commit db950f25e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,11 +31,12 @@ class StatusBeaconTestCase(TestCase, LoaderModuleMockMixin):
def setup_loader_modules(self):
opts = salt.config.DEFAULT_MINION_OPTS
opts['grains'] = salt.loader.grains(opts)
module_globals = {
'__opts__': opts,
'__salt__': 'autoload',
'__context__': {},
'__grains__': {'kernel': 'Linux'}
'__grains__': opts['grains']
}
return {
status: module_globals,