Adding the TestManager code and the timerthread

Change-Id: I0cba5db5b3875bf450bbd7ffe85d7c90ff2966ab
This commit is contained in:
Anand Shanmugam
2015-06-23 11:17:15 -07:00
parent 623cbb217c
commit 23427d1cb6
5 changed files with 232 additions and 3 deletions

View File

@@ -16,6 +16,10 @@ import pecan
from cloudpulse.api import auth
from cloudpulse.api import config as api_config
from cloudpulse.api import middleware
from cloudpulse.common.timerthread import cpulseTimer
from cloudpulse.common.timerthread import timerfunc
from cloudpulse.TestManager.TestManager import Periodic_TestManager
# Register options for the service
bind_opts = [
@@ -67,4 +71,7 @@ def setup_app(config=None):
# TBD Add test hook later
# cpulseTimer(10, timerfunc, "Cpulse")
cpulseTimer(30, timerfunc, "Cpulse")
tm = Periodic_TestManager()
tm.start()
return auth.install(app, CONF, config.app.acl_public_routes)