583bc1c308e4603bb29aa35afa31e51499e69663
[bottlenecks.git] / testing-scheduler / server / test / test_case / logic_in_out / tc_cxt_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 use param of the context\r
12 # we can using the context param just like environment variable by\r
13 # writting ((context.a.b.c)).\r
14 # 'context' is a constant string,\r
15 # a, b, c is the key in the context yaml file (src/env/context/context.yaml).\r
16 \r
17 schema:\r
18   steps:\r
19     -\r
20       id: 1\r
21       name: make_a_greet\r
22       service:\r
23         name: greet\r
24         interface: greet\r
25       args:\r
26         name: leo\r
27 \r
28     -\r
29       id: 2\r
30       name: response_the_greet\r
31       service:\r
32         name: greet\r
33         interface: answer\r
34       args:\r
35         ping: ((context.sprout.name))\r
36 \r
37   flows:\r
38     -\r
39       name: main\r
40       orders:\r
41         -\r
42           type: normal\r
43           step: 1\r
44         -\r
45           type: normal\r
46           step: 2\r
47   context: clearwater-conf.yaml\r