Browse Source

tests: adjust top.enable salt test

Don't assume any other enabled top. If there is none, 'base'
(environment name) also isn't listed.
Marek Marczykowski-Górecki 4 years ago
parent
commit
096b7d611a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      qubes/tests/integ/salt.py

+ 1 - 2
qubes/tests/integ/salt.py

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