From 096b7d611af52b7155f5b3745cf5e117db2ed089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 27 May 2020 13:36:30 +0200 Subject: [PATCH] tests: adjust top.enable salt test Don't assume any other enabled top. If there is none, 'base' (environment name) also isn't listed. --- qubes/tests/integ/salt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qubes/tests/integ/salt.py b/qubes/tests/integ/salt.py index 9551f189..b473e074 100644 --- a/qubes/tests/integ/salt.py +++ b/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: