mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Use nfsd instead of apsd to test disabled
This commit is contained in:
parent
9738b6359f
commit
384cf67de5
@ -194,13 +194,14 @@ class MacServiceModuleTest(integration.ModuleCase):
|
||||
'''
|
||||
Test service.disabled
|
||||
'''
|
||||
self.assertTrue(self.run_function('service.start', [self.SERVICE_NAME]))
|
||||
SERVICE_NAME = 'com.apple.nfsd'
|
||||
self.assertTrue(self.run_function('service.start', [SERVICE_NAME]))
|
||||
self.assertFalse(
|
||||
self.run_function('service.disabled', [self.SERVICE_NAME]))
|
||||
self.run_function('service.disabled', [SERVICE_NAME]))
|
||||
|
||||
self.assertTrue(self.run_function('service.stop', [self.SERVICE_NAME]))
|
||||
self.assertTrue(self.run_function('service.stop', [SERVICE_NAME]))
|
||||
self.assertTrue(
|
||||
self.run_function('service.disabled', [self.SERVICE_NAME]))
|
||||
self.run_function('service.disabled', [SERVICE_NAME]))
|
||||
|
||||
self.assertTrue(self.run_function('service.disabled', ['spongebob']))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user