def testWrappedHeart(utest, serviceMaker): """Service has a child heart beater""" opt = dict(config='config', messages='messages', freq=5) test_heart.replaceEnvironment(utest) masterService = serviceMaker(opt) service = masterService.getServiceNamed('heart') test_heart.checkHeartService(utest, service)
def test_make_service_with_health(self): """Test schedulelib with heart beater""" opts = dict(timeout=10, grace=2, frequency=30) opts['args'] = ['/bin/echo', 'hello'] myEnv = test_heart.buildEnv() test_heart.replaceEnvironment(self, myEnv) masterService = schedulelib.makeService(opts) service = masterService.getServiceNamed('heart') test_heart.checkHeartService(self, service)
def testWrappedHeart(utest, serviceMaker): """Service has a child heart beater""" opt = dict(config='config', messages='messages', freq=5) test_heart.replaceEnvironment(utest) masterService = serviceMaker(opt) service = masterService.getServiceNamed('heart') test_heart.checkHeartService(utest, service)
def test_make_service_with_health(self): """Test schedulelib with heart beater""" opts = dict(timeout=10, grace=2, frequency=30) opts["args"] = ["/bin/echo", "hello"] myEnv = test_heart.buildEnv() test_heart.replaceEnvironment(self, myEnv) masterService = schedulelib.makeService(opts) service = masterService.getServiceNamed("heart") test_heart.checkHeartService(self, service)