Use nfsd instead of apsd to test disabled

This commit is contained in:
Jenkins 2016-11-15 09:25:28 -07:00
parent 9738b6359f
commit 384cf67de5

View File

@ -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']))