Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / test-scheduler / server / test / test_case / logic / tc_logic_08.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 parallel.
12 # parallel nested in parallel using subflow
13
14 schema:
15   steps:
16     -
17       id: 1
18       name: make_a_greet
19       type: test
20       service:
21         name: greet
22         interface: greet
23       action: start
24       args:
25         name: leo_@
26     -
27       id: 2
28       name: choose_greet_type
29       type: test
30       service:
31         name: greet
32         interface: switch
33       action: start
34
35     -
36       id: 3
37       name: response_the_greet
38       type: test
39       service:
40         name: greet
41         interface: answer
42       action: start
43       args:
44         ping: ping_from_leo
45
46     -
47       id: 4
48       name: make_a_greet
49       type: test
50       service:
51         name: greet
52         interface: greet
53       action: start
54       args:
55         name: leo_@
56
57     -
58       id: 5
59       name: make_a_greet_2
60       type: test
61       service:
62         name: greet
63         interface: greet
64       action: start
65       args:
66         name: leo_@
67
68     -
69       id: 6
70       name: make_a_greet_3
71       type: test
72       service:
73         name: greet
74         interface: greet
75       action: start
76       args:
77         name: leo_@
78
79
80   flows:
81     -
82       name: main
83       orders:
84         -
85           type: normal
86           step: 1
87         -
88           type: parallel
89           parallel:
90             p1: flow-p1
91             p2:
92               -
93                 type: normal
94                 step: 6
95     -
96       name: flow-p1
97       orders:
98         -
99           type: normal
100           step: 2
101         -
102           type: parallel
103           parallel:
104             p1:
105               -
106                 type: normal
107                 step: 3
108             p2:
109               -
110                 type: normal
111                 step: 4
112               -
113                 type: normal
114                 step: 5