Use nfsd instead of apsd for test_disabled

This commit is contained in:
twangboy 2016-11-15 09:44:42 -07:00
parent 44f05acbff
commit a0429cf839

View File

@ -199,13 +199,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']))