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:
functionaltests/resources/v2
mistralclient/tests
@ -4,7 +4,6 @@ version: '2.0'
|
|||||||
workflows:
|
workflows:
|
||||||
wf1:
|
wf1:
|
||||||
type: direct
|
type: direct
|
||||||
start-task: hello
|
|
||||||
tasks:
|
tasks:
|
||||||
hello:
|
hello:
|
||||||
action: std.echo output="Hello"
|
action: std.echo output="Hello"
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
version: '2.0'
|
version: '2.0'
|
||||||
|
|
||||||
type: direct
|
type: direct
|
||||||
start-task: hello
|
|
||||||
tasks:
|
tasks:
|
||||||
hello:
|
hello:
|
||||||
action: std.echo output="Hello"
|
action: std.echo output="Hello"
|
||||||
|
@ -63,7 +63,7 @@ class SimpleMistralCLITests(MistralCLIAuth):
|
|||||||
self.mistral('task-list'))
|
self.mistral('task-list'))
|
||||||
self.assertTableStruct(tasks,
|
self.assertTableStruct(tasks,
|
||||||
['ID', 'Name', 'Workflow name', 'Execution ID',
|
['ID', 'Name', 'Workflow name', 'Execution ID',
|
||||||
'State', 'Parameters'])
|
'State'])
|
||||||
|
|
||||||
|
|
||||||
class ClientTestBase(MistralCLIAuth):
|
class ClientTestBase(MistralCLIAuth):
|
||||||
|
@ -31,7 +31,7 @@ ACTION_DICT = {
|
|||||||
|
|
||||||
ACTION_DEF = """
|
ACTION_DEF = """
|
||||||
---
|
---
|
||||||
Version: '2.0'
|
version: '2.0'
|
||||||
|
|
||||||
base: std.echo
|
base: std.echo
|
||||||
base-parameters:
|
base-parameters:
|
@ -22,12 +22,11 @@ from mistralclient.api.v2 import workbooks
|
|||||||
|
|
||||||
WB_DEF = """
|
WB_DEF = """
|
||||||
---
|
---
|
||||||
Version: 2.0
|
version: 2.0
|
||||||
|
|
||||||
Workflows:
|
workflows:
|
||||||
wf1:
|
wf1:
|
||||||
type: direct
|
type: direct
|
||||||
start_task: task1
|
|
||||||
parameters:
|
parameters:
|
||||||
- param1
|
- param1
|
||||||
- param2
|
- param2
|
||||||
|
Reference in New Issue
Block a user