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