Load grains properly

This commit is contained in:
twangboy 2019-06-24 16:40:12 -06:00
parent 6ed6c31e4f
commit bb12da9a3b
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -31,11 +31,11 @@ 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'}
}
return {
status: module_globals,