Example #1
0
    def test_salt_master_running_exception(self, *args):
        with self.assertRaises(NoSaltMasterProcess) as ctx:
            check_salt_master()

        self.assertEqual(str(ctx.exception),
                         "No salt-master process is running")
Example #2
0
 def test_salt_master_ok(self, *args):
     check_salt_master()
Example #3
0
    def test_salt_master_installed(self, *args):
        with self.assertRaises(SaltMasterNotInstalled) as ctx:
            check_salt_master()

        self.assertEqual(str(ctx.exception), "salt-master is not installed")