Adjust all test examples in mistralclient
* Adjust all test examples to new YAQL syntax in python-mistralclient Change-Id: I387b4e6602736c2230ee02d1023ba9e924068742
This commit is contained in:
parent
9a85ed6cf7
commit
62332dfd2c
@ -5,16 +5,16 @@ greeting:
|
|||||||
description: "This action says 'Hello'"
|
description: "This action says 'Hello'"
|
||||||
base: std.echo
|
base: std.echo
|
||||||
base-input:
|
base-input:
|
||||||
output: 'Hello, {$.name}'
|
output: 'Hello, <% $.name %>'
|
||||||
input:
|
input:
|
||||||
- name
|
- name
|
||||||
output:
|
output:
|
||||||
string: $.output
|
string: <% $.output %>
|
||||||
|
|
||||||
farewell:
|
farewell:
|
||||||
base: std.echo
|
base: std.echo
|
||||||
base-input:
|
base-input:
|
||||||
output: 'Bye!'
|
output: 'Bye!'
|
||||||
output:
|
output:
|
||||||
info: $.output
|
info: <% $.output %>
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ greeting:
|
|||||||
tags: [tag, tag1]
|
tags: [tag, tag1]
|
||||||
base: std.echo
|
base: std.echo
|
||||||
base-input:
|
base-input:
|
||||||
output: 'Hello, {$.name}'
|
output: 'Hello, <% $.name %>'
|
||||||
input:
|
input:
|
||||||
- name
|
- name
|
||||||
output:
|
output:
|
||||||
string: $.output
|
string: <% $.output %>
|
||||||
|
@ -10,4 +10,4 @@ workflows:
|
|||||||
hello:
|
hello:
|
||||||
action: std.echo output="Hello"
|
action: std.echo output="Hello"
|
||||||
publish:
|
publish:
|
||||||
result: $
|
result: <% $.hello %>
|
||||||
|
@ -10,4 +10,4 @@ workflows:
|
|||||||
hello:
|
hello:
|
||||||
action: std.echo output="Hello"
|
action: std.echo output="Hello"
|
||||||
publish:
|
publish:
|
||||||
result: $
|
result: <% $.hello %>
|
||||||
|
@ -9,7 +9,7 @@ wf:
|
|||||||
hello:
|
hello:
|
||||||
action: std.echo output="Hello"
|
action: std.echo output="Hello"
|
||||||
publish:
|
publish:
|
||||||
result: $.hello
|
result: <% $.hello %>
|
||||||
policies:
|
policies:
|
||||||
wait-after: 1
|
wait-after: 1
|
||||||
on-success:
|
on-success:
|
||||||
@ -18,4 +18,4 @@ wf:
|
|||||||
task2:
|
task2:
|
||||||
action: std.echo output="Task 2"
|
action: std.echo output="Task 2"
|
||||||
publish:
|
publish:
|
||||||
task2: $.task2
|
task2: <% $.task2 %>
|
||||||
|
@ -9,7 +9,7 @@ wf:
|
|||||||
policies:
|
policies:
|
||||||
wait-before: 5
|
wait-before: 5
|
||||||
publish:
|
publish:
|
||||||
result: $
|
result: <% $.hello %>
|
||||||
|
|
||||||
wf1:
|
wf1:
|
||||||
type: reverse
|
type: reverse
|
||||||
@ -20,7 +20,7 @@ wf1:
|
|||||||
addressee:
|
addressee:
|
||||||
action: std.echo output="John"
|
action: std.echo output="John"
|
||||||
publish:
|
publish:
|
||||||
name: $
|
name: <% $.addressee %>
|
||||||
goodbye:
|
goodbye:
|
||||||
action: std.echo output="{$.farewell}, {$.name}"
|
action: std.echo output="<% $.farewell %>, <% $.name %>"
|
||||||
requires: [addressee]
|
requires: [addressee]
|
||||||
|
@ -37,8 +37,8 @@ version: '2.0'
|
|||||||
|
|
||||||
base: std.echo
|
base: std.echo
|
||||||
base-parameters:
|
base-parameters:
|
||||||
output: "{$.str1}{$.str2}"
|
output: "<% $.str1 %><% $.str2 %>"
|
||||||
output: "{$}{$}"
|
output: "<% $ %><% $ %>"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
ACTION_WITH_DEF_DICT = ACTION_DICT.copy()
|
ACTION_WITH_DEF_DICT = ACTION_DICT.copy()
|
||||||
|
Loading…
Reference in New Issue
Block a user