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