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'" 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 %>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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