Merge "Add test-scheduler dir to verity"
[bottlenecks.git] / testing-scheduler / server / test / test_case / logic_in_out / tc_io_01.yaml
1 ##############################################################################\r
2 # Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD and others.\r
3 #\r
4 # All rights reserved. This program and the accompanying materials\r
5 # are made available under the terms of the Apache License, Version 2.0\r
6 # which accompanies this distribution, and is available at\r
7 # http://www.apache.org/licenses/LICENSE-2.0\r
8 ##############################################################################\r
9 \r
10 ---\r
11 # description: test switch value used step-1's output.\r
12 # to referring the step's output, using ((x.y)).\r
13 # x is the id of the step,\r
14 # y is the output key of the step.\r
15 \r
16 schema:\r
17   steps:\r
18     -\r
19       id: 1\r
20       name: get-switch\r
21       service:\r
22         name: greet\r
23         interface: switch\r
24       args:\r
25         name: leo\r
26 \r
27     -\r
28       id: 2\r
29       name: greet1\r
30       service:\r
31         name: greet\r
32         interface: answer\r
33       args:\r
34         ping: ping_from_Leo\r
35 \r
36     -\r
37       id: 3\r
38       name: greet2\r
39       service:\r
40         name: greet\r
41         interface: answer\r
42       args:\r
43         ping: ping_from_Leo_2\r
44 \r
45   flows:\r
46     -\r
47       name: main\r
48       orders:\r
49         -\r
50           type: normal\r
51           step: 1\r
52         -\r
53           type: switch\r
54           value: ((1.result))\r
55           cases:\r
56             A:\r
57               -\r
58                 type: normal\r
59                 step: 2\r
60             B:\r
61               -\r
62                 type: normal\r
63                 step: 3