Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / testing-scheduler / server / test / test_case / logic / tc_logic_04.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 sub flow.\r
12 \r
13 schema:\r
14   steps:\r
15     -\r
16       id: 1\r
17       name: choose_greet_type\r
18       type: test\r
19       service:\r
20         name: greet\r
21         interface: switch\r
22       action: start\r
23 \r
24     -\r
25       id: 2\r
26       name: response_the_greet\r
27       type: test\r
28       service:\r
29         name: greet\r
30         interface: answer\r
31       action: start\r
32       args:\r
33         ping: ping_from_leo\r
34 \r
35     -\r
36       id: 3\r
37       name: make_a_greet_2\r
38       type: test\r
39       service:\r
40         name: greet\r
41         interface: greet\r
42       action: start\r
43       args:\r
44         name: leo_@\r
45 \r
46   flows:\r
47     -\r
48       name: main\r
49       orders:\r
50         -\r
51           type: normal\r
52           step: 1\r
53         -\r
54           type: switch\r
55           value: ((1.result))\r
56           cases:\r
57             A: flow-1\r
58             B: flow-2\r
59     -\r
60       name: flow-1\r
61       orders:\r
62         -\r
63           type: normal\r
64           step: 2\r
65     -\r
66       name: flow-2\r
67       orders:\r
68         -\r
69           type: normal\r
70           step: 3\r