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