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