tests: adjust top.enable salt test
Don't assume any other enabled top. If there is none, 'base' (environment name) also isn't listed.
This commit is contained in:
parent
b889bf98f4
commit
096b7d611a
@ -93,8 +93,7 @@ class TC_00_Dom0(SaltTestMixin, qubes.tests.SystemTestCase):
|
||||
|
||||
cmd_output = self.dom0_salt_call_json(['state.show_top'])
|
||||
self.assertIn('local', cmd_output)
|
||||
self.assertIn('base', cmd_output['local'])
|
||||
self.assertNotIn('test_salt.something', cmd_output['local']['base'])
|
||||
self.assertNotIn('test_salt.something', cmd_output['local'].get('base', []))
|
||||
|
||||
def test_001_state_sls(self):
|
||||
with open(os.path.join(self.salt_testdir, 'something.sls'), 'w') as f:
|
||||
|
Loading…
Reference in New Issue
Block a user