ac0f81c908ae3a9cb057c1d8a4b2d8d3fe64b7c0
[bottlenecks.git] / testing-scheduler / server / test / test_case / logic / tc_logic_05.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 switch.\r
12 # switch nested in switch by using subflow.\r
13 \r
14 schema:\r
15   steps:\r
16     -\r
17       id: 1\r
18       name: choose_greet_type\r
19       type: test\r
20       service:\r
21         name: greet\r
22         interface: switch\r
23       action: start\r
24 \r
25     -\r
26       id: 2\r
27       name: response_the_greet\r
28       type: test\r
29       service:\r
30         name: greet\r
31         interface: answer\r
32       action: start\r
33       args:\r
34         ping: ping_from_leo\r
35 \r
36     -\r
37       id: 3\r
38       name: choose_greet_type_2\r
39       type: test\r
40       service:\r
41         name: greet\r
42         interface: switch_2\r
43       action: start\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: response_the_greet_2\r
59       type: test\r
60       service:\r
61         name: greet\r
62         interface: answer\r
63       action: start\r
64       args:\r
65         ping: ping_from_leo_2\r
66 \r
67   flows:\r
68     -\r
69       name: main\r
70       orders:\r
71         -\r
72           type: normal\r
73           step: 1\r
74         -\r
75           type: switch\r
76           value: ((1.result))\r
77           cases:\r
78             A:\r
79               -\r
80                 type: normal\r
81                 step: 2\r
82             B: flow-1\r
83     -\r
84       name: flow-1\r
85       orders:\r
86         -\r
87           type: normal\r
88           step: 3\r
89         -\r
90           type: switch\r
91           value: ((3.result))\r
92           cases:\r
93             C:\r
94               -\r
95                 type: normal\r
96                 step: 4\r
97             D:\r
98               -\r
99                 type: normal\r
100                 step: 5\r