Rename execution_id to workflow_execution_id

The field execution_id is renamed in the task object to
workflow_execution_id. References in the mistralclient are
changed accordingly.

Change-Id: Id4deeba546b1fadd4c18585ca177d74bdf08f6dd
Closes-Bug: #1428374
This commit is contained in:
Winson Chan
2015-03-05 01:28:14 +00:00
parent ba309180a4
commit 6066a75dbe
4 changed files with 6 additions and 6 deletions

View File

@@ -31,11 +31,11 @@ class TaskManager(base.ResourceManager):
return self._update('/tasks/%s' % id, data)
def list(self, execution_id=None):
def list(self, workflow_execution_id=None):
url = '/tasks'
if execution_id:
url = '/executions/%s/tasks' % execution_id
if workflow_execution_id:
url = '/executions/%s/tasks' % workflow_execution_id
return self._list(url, response_key='tasks')

View File

@@ -40,7 +40,7 @@ def format(task=None):
task.id,
task.name,
task.workflow_name,
task.execution_id,
task.workflow_execution_id,
task.state,
)
else:

View File

@@ -26,7 +26,7 @@ TASK_DICT = {
'id': '123',
'name': 'some',
'workflow_name': 'thing',
'execution_id': '321',
'workflow_execution_id': '321',
'state': 'RUNNING',
}

View File

@@ -21,7 +21,7 @@ from mistralclient.tests.unit.v2 import base
TASK = {
'id': "1",
'execution_id': '123',
'workflow_execution_id': '123',
'name': 'my_task',
'workflow_name': 'my_wf',
'state': 'RUNNING',