Changing test status from created to scheduled
Change-Id: Ie58a831ec0be9fcf4dc37d047e412b68daad6fc1
This commit is contained in:
@@ -42,7 +42,7 @@ class Periodic_Task(object):
|
|||||||
|
|
||||||
def create_task_entry(self, context):
|
def create_task_entry(self, context):
|
||||||
test = {}
|
test = {}
|
||||||
test['state'] = 'created'
|
test['state'] = 'scheduled'
|
||||||
test['testtype'] = 'periodic'
|
test['testtype'] = 'periodic'
|
||||||
test['name'] = self.task
|
test['name'] = self.task
|
||||||
test['uuid'] = utils.generate_uuid()
|
test['uuid'] = utils.generate_uuid()
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ class cpulseController(rest.RestController):
|
|||||||
ncp.cpulse_create_timeout = 0
|
ncp.cpulse_create_timeout = 0
|
||||||
ncp.result = "NotYetRun"
|
ncp.result = "NotYetRun"
|
||||||
ncp.testtype = "manual"
|
ncp.testtype = "manual"
|
||||||
ncp.state = 'created'
|
ncp.state = 'scheduled'
|
||||||
res_test = pecan.request.rpcapi.test_create(ncp,
|
res_test = pecan.request.rpcapi.test_create(ncp,
|
||||||
ncp.cpulse_create_timeout)
|
ncp.cpulse_create_timeout)
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ def timerfunc(*args, **kwargs):
|
|||||||
delete_old_entries()
|
delete_old_entries()
|
||||||
for test in tests:
|
for test in tests:
|
||||||
LOG.debug(_LI('Dumping REPFUNCTION %s') % test['uuid'])
|
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 = getattr(sys.modules[__name__], 'test_run')
|
||||||
# methodtocall()
|
# methodtocall()
|
||||||
testthr = threading.Thread(name=test['name'],
|
testthr = threading.Thread(name=test['name'],
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class Connection(object):
|
|||||||
{
|
{
|
||||||
'uuid': utils.generate_uuid(),
|
'uuid': utils.generate_uuid(),
|
||||||
'name': 'endpoint_functional',
|
'name': 'endpoint_functional',
|
||||||
'state': 'created',
|
'state': 'scheduled',
|
||||||
'result': 'pass'
|
'result': 'pass'
|
||||||
}
|
}
|
||||||
:returns: A test.
|
:returns: A test.
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ def get_cpulse_test(**kw):
|
|||||||
'id': kw.get('id', 32),
|
'id': kw.get('id', 32),
|
||||||
'uuid': kw.get('uuid', 'e74c40e0-d825-11e2-a28f-0800200c9a66'),
|
'uuid': kw.get('uuid', 'e74c40e0-d825-11e2-a28f-0800200c9a66'),
|
||||||
'name': kw.get('name', 'dummy_cloudtest'),
|
'name': kw.get('name', 'dummy_cloudtest'),
|
||||||
'state': kw.get('state', 'created'),
|
'state': kw.get('state', 'scheduled'),
|
||||||
'result': kw.get('state', 'success'),
|
'result': kw.get('state', 'success'),
|
||||||
'testtype': kw.get('testtype', 'periodic'),
|
'testtype': kw.get('testtype', 'periodic'),
|
||||||
'created_at': kw.get('created_at'),
|
'created_at': kw.get('created_at'),
|
||||||
|
|||||||
Reference in New Issue
Block a user