Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / testing-scheduler / server / test / test_case / logic / tc_logic_03.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 useless sub workflow\r
12 # In this testcase, there is a subflow whose name\r
13 # is 'flow-1' which will not be executed because no\r
14 # other flow refers to it.\r
15 # This testcase is used to test that besides main flow,\r
16 # whether subflow can be parsed without exception.\r
17 \r
18 schema:\r
19   steps:\r
20     -\r
21       id: 1\r
22       name: choose_greet_type\r
23       type: test\r
24       service:\r
25         name: greet\r
26         interface: switch\r
27       action: start\r
28 \r
29     -\r
30       id: 2\r
31       name: response_the_greet\r
32       type: test\r
33       service:\r
34         name: greet\r
35         interface: answer\r
36       action: start\r
37       args:\r
38         ping: ping_from_leo\r
39 \r
40     -\r
41       id: 3\r
42       name: make_a_greet_2\r
43       type: test\r
44       service:\r
45         name: greet\r
46         interface: greet\r
47       action: start\r
48       args:\r
49         name: leo_@\r
50 \r
51     -\r
52       id: 4\r
53       name: make_a_greet_3\r
54       type: test\r
55       service:\r
56         name: greet\r
57         interface: greet\r
58       action: start\r
59       args:\r
60         name: leo_@\r
61 \r
62   flows:\r
63     -\r
64       name: main\r
65       orders:\r
66         -\r
67           type: normal\r
68           step: 1\r
69         -\r
70           type: switch\r
71           value: ((1.result))\r
72           cases:\r
73             A:\r
74               -\r
75                 type: normal\r
76                 step: 2\r
77             B:\r
78               -\r
79                 type: normal\r
80                 step: 3\r
81     -\r
82       name: flow-1\r
83       orders:\r
84         -\r
85           type: normal\r
86           step: 4\r