55e9326cf72ddb1e940272dc71c0d1c9de05bd87
[cli.git] / framework / src / test / resources / onap-cli-schema / sample-test1-schema-http.yaml
1 open_cli_schema_version: 1.0
2 name: sample-test1
3 description: Onap sample command to test the command features
4 version: cli-1.0
5 service:
6   name: sample
7   version: v1
8 parameters:
9   - name: bool-param
10     type: bool
11     description: Onap boolean param, by default its always false.
12     short_option: b
13     long_option: bool
14     is_optional: true
15     default_value: false
16   - name: secure-param
17     type: string
18     description: Onap secure param such as password
19     short_option: x
20     long_option: secure
21     is_secured: true
22     is_optional: false
23     default_Value: pass123#
24   - name: string-param
25     type: string
26     description: Onap string param
27     long_option: string-param
28     short_option: c
29     is_optional: false
30     default_Value: test
31   - name: yaml-param
32     type: json
33     description: Onap yaml file location param
34     long_option: yaml-param
35     short_option: y
36     is_optional: false
37   - name: json-param
38     type: json
39     description: Onap json file location param
40     long_option: json-param
41     short_option: j
42     is_optional: false
43   - name: long-param
44     type: long
45     description: Onap long param
46     short_option: l
47     long_option: long-opt
48     is_optional: false
49     default_value: 10
50   - name: url-param
51     type: url
52     description: Onap url param
53     short_option: r
54     long_option: url
55     is_optional: false
56     default_value: http://localhost:8082/file.txt
57   - name: env-param
58     type: string
59     description: Onap env param.
60     short_option: z
61     long_option: env
62     is_optional: false
63     default_value: ${ENV_VAR}
64   - name: positional-args
65     type: string
66     description: Onap positional args, if no short option and no long option given for it
67     is_optional: false
68     default_value: http://localhost:8082/file.txt
69 http:
70   request:
71     uri: /vims
72     method: POST
73     body: '{"name":"${name}","vendor":"${vendor}","version":"${vim-version}","description":"${description}","type":"${type}","url":"${url}","userName":"${username}","password":"${password}","domain":"${domain}","tenant":"${tenant}"}'
74     headers:
75   success_codes:
76     - 201
77     - 200
78   result_map:
79     id: $b{$.vimId}
80     name: $b{$.name}
81     vendor: $b{$.vendor}
82     type: $b{$.type}
83     version: $b{$.version}
84     url: $b{$.url}
85     description: $b{$.description}
86     username: $b{$.userName}
87     password: $b{$.password}
88     domain: $b{$.domain}
89     tenant: $b{$.tenant}
90     create-time: $b{$.createTime}
91   sample_response:
92     body:'{"id":"string","name":"string","vendor":"string","version":"string","description":"string","type":"string","createTime":"string","url":"string","userName":"string","password":"string","domain":"string","tenant":"string"}'