mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Migrated test.integration.states.supervisord
to use SaltReturnAssertsMixIn
.
This commit is contained in:
parent
cbea092b0c
commit
e03a2606a1
@ -22,10 +22,9 @@ class SupervisordTest(integration.ModuleCase):
|
||||
supervisord.running restart = False
|
||||
'''
|
||||
ret = self.run_state(
|
||||
'supervisord.running', name='null_service', test=True)
|
||||
|
||||
self.assertTrue(ret)
|
||||
self.assertEqual(self.state_result(ret), False)
|
||||
'supervisord.running', name='null_service', test=True
|
||||
)
|
||||
self.assertSaltFalseReturn(ret)
|
||||
|
||||
def test_restart(self):
|
||||
'''
|
||||
@ -33,17 +32,15 @@ class SupervisordTest(integration.ModuleCase):
|
||||
'''
|
||||
ret = self.run_state(
|
||||
'supervisord.running', name='null_service', restart=True,
|
||||
test=True)
|
||||
|
||||
self.assertTrue(ret)
|
||||
self.assertEqual(self.state_result(ret), False)
|
||||
test=True
|
||||
)
|
||||
self.assertSaltFalseReturn(ret)
|
||||
|
||||
def test_stop(self):
|
||||
'''
|
||||
supervisord.dead
|
||||
'''
|
||||
ret = self.run_state(
|
||||
'supervisord.dead', name='null_service', test=True)
|
||||
|
||||
self.assertTrue(ret)
|
||||
self.assertEqual(self.state_result(ret), False)
|
||||
'supervisord.dead', name='null_service', test=True
|
||||
)
|
||||
self.assertSaltFalseReturn(ret)
|
||||
|
Loading…
Reference in New Issue
Block a user