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:
Nikolay Mahotkin 2015-02-24 11:28:51 +03:00
parent 9a85ed6cf7
commit 62332dfd2c
7 changed files with 14 additions and 14 deletions

View File

@ -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 %>

View File

@ -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 %>

View File

@ -10,4 +10,4 @@ workflows:
hello:
action: std.echo output="Hello"
publish:
result: $
result: <% $.hello %>

View File

@ -10,4 +10,4 @@ workflows:
hello:
action: std.echo output="Hello"
publish:
result: $
result: <% $.hello %>

View File

@ -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 %>

View File

@ -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]

View File

@ -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()