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'"
|
||||
base: std.echo
|
||||
base-input:
|
||||
output: 'Hello, {$.name}'
|
||||
output: 'Hello, <% $.name %>'
|
||||
input:
|
||||
- name
|
||||
output:
|
||||
string: $.output
|
||||
string: <% $.output %>
|
||||
|
||||
farewell:
|
||||
base: std.echo
|
||||
base-input:
|
||||
output: 'Bye!'
|
||||
output:
|
||||
info: $.output
|
||||
info: <% $.output %>
|
||||
|
||||
|
@ -6,8 +6,8 @@ greeting:
|
||||
tags: [tag, tag1]
|
||||
base: std.echo
|
||||
base-input:
|
||||
output: 'Hello, {$.name}'
|
||||
output: 'Hello, <% $.name %>'
|
||||
input:
|
||||
- name
|
||||
output:
|
||||
string: $.output
|
||||
string: <% $.output %>
|
||||
|
@ -10,4 +10,4 @@ workflows:
|
||||
hello:
|
||||
action: std.echo output="Hello"
|
||||
publish:
|
||||
result: $
|
||||
result: <% $.hello %>
|
||||
|
@ -10,4 +10,4 @@ workflows:
|
||||
hello:
|
||||
action: std.echo output="Hello"
|
||||
publish:
|
||||
result: $
|
||||
result: <% $.hello %>
|
||||
|
@ -9,7 +9,7 @@ wf:
|
||||
hello:
|
||||
action: std.echo output="Hello"
|
||||
publish:
|
||||
result: $.hello
|
||||
result: <% $.hello %>
|
||||
policies:
|
||||
wait-after: 1
|
||||
on-success:
|
||||
@ -18,4 +18,4 @@ wf:
|
||||
task2:
|
||||
action: std.echo output="Task 2"
|
||||
publish:
|
||||
task2: $.task2
|
||||
task2: <% $.task2 %>
|
||||
|
@ -9,7 +9,7 @@ wf:
|
||||
policies:
|
||||
wait-before: 5
|
||||
publish:
|
||||
result: $
|
||||
result: <% $.hello %>
|
||||
|
||||
wf1:
|
||||
type: reverse
|
||||
@ -20,7 +20,7 @@ wf1:
|
||||
addressee:
|
||||
action: std.echo output="John"
|
||||
publish:
|
||||
name: $
|
||||
name: <% $.addressee %>
|
||||
goodbye:
|
||||
action: std.echo output="{$.farewell}, {$.name}"
|
||||
action: std.echo output="<% $.farewell %>, <% $.name %>"
|
||||
requires: [addressee]
|
||||
|
@ -37,8 +37,8 @@ version: '2.0'
|
||||
|
||||
base: std.echo
|
||||
base-parameters:
|
||||
output: "{$.str1}{$.str2}"
|
||||
output: "{$}{$}"
|
||||
output: "<% $.str1 %><% $.str2 %>"
|
||||
output: "<% $ %><% $ %>"
|
||||
"""
|
||||
|
||||
ACTION_WITH_DEF_DICT = ACTION_DICT.copy()
|
||||
|
Loading…
Reference in New Issue
Block a user