Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / test-scheduler / server / test / test_case / logic / tc_logic_07.yaml
1 ##############################################################################
2 # Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 ---
11 # description: test conductor basic logic of parallel + switch
12
13 schema:
14   steps:
15     -
16       id: 1
17       name: make_a_greet
18       type: test
19       service:
20         name: greet
21         interface: greet
22       action: start
23       args:
24         name: leo_@
25     -
26       id: 2
27       name: choose_greet_type
28       type: test
29       service:
30         name: greet
31         interface: switch
32       action: start
33
34     -
35       id: 3
36       name: response_the_greet
37       type: test
38       service:
39         name: greet
40         interface: answer
41       action: start
42       args:
43         ping: ping_from_leo
44
45     -
46       id: 4
47       name: make_a_greet
48       type: test
49       service:
50         name: greet
51         interface: greet
52       action: start
53       args:
54         name: leo_@
55
56     -
57       id: 5
58       name: make_a_greet_2
59       type: test
60       service:
61         name: greet
62         interface: greet
63       action: start
64       args:
65         name: leo_@
66
67
68   flows:
69     -
70       name: main
71       orders:
72         -
73           type: normal
74           step: 1
75         -
76           type: parallel
77           parallel:
78             p1: flow-1
79             p2:
80               -
81                 type: normal
82                 step: 5
83     -
84       name: flow-1
85       orders:
86         -
87           type: normal
88           step: 2
89         -
90           type: switch
91           value: ((2.result))
92           cases:
93             A:
94               -
95                 type: normal
96                 step: 3
97             B:
98               -
99                 type: normal
100                 step: 4