9361e384a3f887fad6e00f300f5730e41b78a57e
[cli.git] /
1 # Copyright (c) 2018 Intel Corporation Intellectual Property
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: functest-create
17 description: Start Functest Onboard Testing
18
19
20 info:
21   product: onap-casablanca
22   service: functest
23   author: ONAP CLI Team onap-discuss@lists.onap.org
24
25 parameters:
26   - name: packageID
27     description: VNF package ID
28     type: string
29     short_option: x
30     long_option: packageID
31     is_optional: false
32
33 results:
34   direction: landscape
35   attributes:
36     - name: taskID
37       description: Function test task ID
38       scope: short
39       type: string
40
41 http:
42   service:
43     auth: none
44     mode: direct
45   request:
46     uri: /api/vnfsdk/v1/functest/taskmanager/onboard
47     method: POST
48     body: ${packageID}
49     headers:
50       Content-Type: application/json
51   success_codes:
52     - 201
53   result_map:
54     taskID: $b{$.taskID}