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