Fix client tests due to changes in code from 'mistral' repository

-Removing 'start-task' parameter from test workbooks
-Lowercase key section names in workbooks from unit tests
-Rename 'test_cli_acitons' to 'test_cli_actions'
-Fix CLI test 'test_task_list' due to changes in
https://review.openstack.org/#/c/121818/

Change-Id: I8ace89b460c3c72cdac3c3f42684fe1e8b6ad5de
This commit is contained in:
Anastasia Kuznetsova
2014-09-18 11:02:53 +04:00
parent 67c63f777b
commit 30e5150f15
5 changed files with 4 additions and 7 deletions
functionaltests/resources/v2
mistralclient/tests

@ -4,7 +4,6 @@ version: '2.0'
workflows:
wf1:
type: direct
start-task: hello
tasks:
hello:
action: std.echo output="Hello"

@ -2,7 +2,6 @@
version: '2.0'
type: direct
start-task: hello
tasks:
hello:
action: std.echo output="Hello"

@ -63,7 +63,7 @@ class SimpleMistralCLITests(MistralCLIAuth):
self.mistral('task-list'))
self.assertTableStruct(tasks,
['ID', 'Name', 'Workflow name', 'Execution ID',
'State', 'Parameters'])
'State'])
class ClientTestBase(MistralCLIAuth):

@ -31,7 +31,7 @@ ACTION_DICT = {
ACTION_DEF = """
---
Version: '2.0'
version: '2.0'
base: std.echo
base-parameters:

@ -22,12 +22,11 @@ from mistralclient.api.v2 import workbooks
WB_DEF = """
---
Version: 2.0
version: 2.0
Workflows:
workflows:
wf1:
type: direct
start_task: task1
parameters:
- param1
- param2