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