Changing test status from created to scheduled

Change-Id: Ie58a831ec0be9fcf4dc37d047e412b68daad6fc1
This commit is contained in:
Anand Shanmugam 2015-10-22 11:12:31 -07:00
parent 5360a8d4db
commit 37428bb800
5 changed files with 5 additions and 5 deletions
cloudpulse
TestManager
api/controllers/v1
common
db
tests/unit/db

@ -42,7 +42,7 @@ class Periodic_Task(object):
def create_task_entry(self, context):
test = {}
test['state'] = 'created'
test['state'] = 'scheduled'
test['testtype'] = 'periodic'
test['name'] = self.task
test['uuid'] = utils.generate_uuid()

@ -201,7 +201,7 @@ class cpulseController(rest.RestController):
ncp.cpulse_create_timeout = 0
ncp.result = "NotYetRun"
ncp.testtype = "manual"
ncp.state = 'created'
ncp.state = 'scheduled'
res_test = pecan.request.rpcapi.test_create(ncp,
ncp.cpulse_create_timeout)

@ -81,7 +81,7 @@ def timerfunc(*args, **kwargs):
delete_old_entries()
for test in tests:
LOG.debug(_LI('Dumping REPFUNCTION %s') % test['uuid'])
if test['state'] == 'created' and test['testtype'] == 'manual':
if test['state'] == 'scheduled' and test['testtype'] == 'manual':
methodtocall = getattr(sys.modules[__name__], 'test_run')
# methodtocall()
testthr = threading.Thread(name=test['name'],

@ -75,7 +75,7 @@ class Connection(object):
{
'uuid': utils.generate_uuid(),
'name': 'endpoint_functional',
'state': 'created',
'state': 'scheduled',
'result': 'pass'
}
:returns: A test.

@ -21,7 +21,7 @@ def get_cpulse_test(**kw):
'id': kw.get('id', 32),
'uuid': kw.get('uuid', 'e74c40e0-d825-11e2-a28f-0800200c9a66'),
'name': kw.get('name', 'dummy_cloudtest'),
'state': kw.get('state', 'created'),
'state': kw.get('state', 'scheduled'),
'result': kw.get('state', 'success'),
'testtype': kw.get('testtype', 'periodic'),
'created_at': kw.get('created_at'),