Пример #1
0
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)
Пример #2
0
 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)
Пример #3
0
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)
Пример #4
0
 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)