0f5d03a365cfebe8f28bb7a159ee032fe5604f9e
[cli.git] /
1 # Copyright © Intel Corporation 2019
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 open_cli_schema_version: 1.0
16 name: service-model-test-accept
17 description: Accepts the Service model test in SDC
18
19 info:
20   product: onap-elalto
21   service: sdc.catalog
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: service-id
27     description: Service model ID
28     type: string
29     long_option: service-id
30     short_option: b
31     is_optional: false
32   - name: remarks
33     description: Remarks when accepting test
34     type: string
35     long_option: remarks
36     short_option: r
37     is_optional: false
38 results:
39   direction: portrait
40   attributes:
41     - name: id
42       description: NS checked out version unique ID
43       scope: short
44       type: string
45     - name: uuid
46       description: NS checked out version unique ID
47       scope: short
48       type: string
49     - name: version
50       description: VF version
51       scope: short
52       type: string
53 http:
54   service:
55     name: sdc
56     version: v1.0
57     auth: basic
58     mode: direct
59   request:
60     uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/certify
61     method: POST
62     body: '{"userRemarks": "${remarks}"}'
63   success_codes:
64     - 200
65   result_map:
66     id: $b{$.uniqueId}
67     version: $b{$.version}
68     uuid: $b{$.unid}