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:
Marek Marczykowski-Górecki 2020-05-27 13:36:30 +02:00
parent b889bf98f4
commit 096b7d611a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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: