Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / test-scheduler / server / test / test_case / logic_in_out / tc_io_02.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 switch and step-2 used step-1's output
12
13 schema:
14   steps:
15     -
16       id: 1
17       name: get-switch
18       service:
19         name: greet
20         interface: switch
21       args:
22         name: leo
23
24     -
25       id: 2
26       name: greet1
27       service:
28         name: greet
29         interface: answer
30       args:
31         ping: ((1.result))
32
33     -
34       id: 3
35       name: greet2
36       service:
37         name: greet
38         interface: answer
39       args:
40         ping: ping_from_Leo_2
41
42   flows:
43     -
44       name: main
45       orders:
46         -
47           type: normal
48           step: 1
49         -
50           type: switch
51           value: ((1.result))
52           cases:
53             A:
54               -
55                 type: normal
56                 step: 2
57             B:
58               -
59                 type: normal
60                 step: 3