From 060f27451bac66ff909d1b5785752dd516a7cf66 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Mon, 10 Sep 2018 17:52:02 +0530 Subject: VTP: Add VNFSDK support Issue-ID: VNFSDK-304 Change-Id: I3bb2e47606dc14c588ae47fd63eb7c575078b49a Signed-off-by: Kanagaraj Manickam k00365106 --- products/onap-casablanca/features/vnfsdk/pom.xml | 41 ++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/pom.xml (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/pom.xml b/products/onap-casablanca/features/vnfsdk/pom.xml new file mode 100644 index 00000000..6c3ca724 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/pom.xml @@ -0,0 +1,41 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products-onap-casablanca-features + 2.0.3 + + + cli-products-onap-casablanca-features-vnfsdk + cli/products/onap-casablanca/features/vnfsdk + jar + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + -- cgit 1.2.3-korg From 12ccc7ac1d06e0ba4ce698f68c4c60038ea03232 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:07:32 +0530 Subject: VTP: Add csar upload cli Issue-ID: VNFSDK-304 Change-Id: I81d6c07857b908f9610db4cce693ccb54c498aa5 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-schema/csar-create-schema.yaml | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml new file mode 100644 index 00000000..ca758519 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml @@ -0,0 +1,54 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: csar-create +description: Uploads the CSARs in marketplace + + +info: + product: onap-casablanca + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: csar-file + description: CSAR File path + type: binary + short_option: x + long_option: csar-file + is_optional: false + +results: + direction: landscape + attributes: + - name: csarId + description: CSAR id + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars + method: POST + body: ${csar-file} + multipart_entity_name: file + headers: + Content-Type: multipart/form-data + success_codes: + - 200 + result_map: + csarId: $b{$.csarId} \ No newline at end of file -- cgit 1.2.3-korg From 35947381abb8e6abf8d237ae5d54c4e4feb53838 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:09:46 +0530 Subject: VTP: csar show details cli Issue-ID: VNFSDK-304 Change-Id: I56a76fe2aba8c0db3ce85ba3448e08dfc7137554 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/csar-show-schema-moco.json | 31 ++++++++++ .../open-cli-sample/csar-show-schema-sample.yaml | 22 ++++++++ .../open-cli-schema/csar-show-schema.yaml | 66 ++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json new file mode 100644 index 00000000..00d02ce0 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json @@ -0,0 +1,31 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "csarId" : "a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "name" : "VoLTE", + "downloadUri" : "http://127.0.0.1:8080/files/catalog-http/CSAR/ChinaMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE/v1.0/VoLTE.csar", + "size" : "52.4 KB", + "version" : "v1.0", + "provider" : "ChinaMobile", + "type" : "CSAR", + "format" : "yaml", + "deletionPending" : false, + "createTime" : "2018-09-10 15:11:29", + "modifyTime" : "2018-09-10 15:11:29", + "shortDesc" : "descr", + "downloadCount" : 0, + "details" : "details", + "remarks" : "remarks" + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml new file mode 100644 index 00000000..f12488e1 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml @@ -0,0 +1,22 @@ +open_cli_sample_version: 1.0 +name: csar-show +version: onap-casablanca +samples: + sample1: + name: csar-show + input: -m http://localhost:7070/vnf-sdk-marketplace -x a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36 + moco: csar-show-schema-moco.json + output: | + +--------------+----------------------------------------------------+ + |property |value | + +--------------+----------------------------------------------------+ + |name |VoLTE | + +--------------+----------------------------------------------------+ + |size |52.4 KB | + +--------------+----------------------------------------------------+ + |downloadUri |http://127.0.0.1:8080/files/catalog-http/CSAR/Chin | + | |aMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE | + | |/v1.0/VoLTE.csar | + +--------------+----------------------------------------------------+ + |provider |ChinaMobile | + +--------------+----------------------------------------------------+ diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml new file mode 100644 index 00000000..104ddb6c --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml @@ -0,0 +1,66 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: csar-show +description: Show details of the CSARs in marketplace + + +info: + product: onap-casablanca + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: csar-id + description: Onap CSAR id + type: string + short_option: x + long_option: csar-id + is_optional: false + +results: + direction: portrait + attributes: + - name: name + description: CSAR Name + scope: short + type: string + - name: size + description: CSAR size + scope: short + type: url + - name: downloadUri + description: CSAR download URL + scope: short + type: url + - name: provider + description: CSAR Provider + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id} + method: GET + success_codes: + - 201 + - 200 + result_map: + name: $b{$.name} + size: $b{$.size} + downloadUri: $b{$.downloadUri} + provider: $b{$.provider} \ No newline at end of file -- cgit 1.2.3-korg From dcda7b966bc4edd7e7dbc7a67d65c40a77c6a09e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:10:15 +0530 Subject: VTP: csar list cli Issue-ID: VNFSDK-304 Change-Id: I41896003facc0e2de3aafc5abe311ea8aec0db9e Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/csar-list-schema-moco.json | 31 +++++++++++ .../open-cli-sample/csar-list-schema-sample.yaml | 16 ++++++ .../open-cli-schema/csar-list-schema.yaml | 63 ++++++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json new file mode 100644 index 00000000..e0a8e30f --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json @@ -0,0 +1,31 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : [ { + "csarId" : "a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "name" : "VoLTE", + "downloadUri" : "http://127.0.0.1:8080/files/catalog-http/CSAR/ChinaMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE/v1.0/VoLTE.csar", + "size" : "52.4 KB", + "version" : "v1.0", + "provider" : "ChinaMobile", + "type" : "CSAR", + "format" : "yaml", + "deletionPending" : false, + "createTime" : "2018-09-10 15:11:29", + "modifyTime" : "2018-09-10 15:11:29", + "shortDesc" : "descr", + "downloadCount" : 0, + "details" : "details", + "remarks" : "remarks" + } ] + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml new file mode 100644 index 00000000..c3a3e208 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml @@ -0,0 +1,16 @@ +open_cli_sample_version: 1.0 +name: csar-list +version: onap-casablanca +samples: + sample1: + name: csar-list + input: -m http://localhost:7070/vnf-sdk-marketplace + moco: csar-list-schema-moco.json + output: | + +--------------------------------------+--------+----------+----------------------------------------------------+--------------+ + |csarId |name |size |downloadUri |provider | + +--------------------------------------+--------+----------+----------------------------------------------------+--------------+ + |a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36 |VoLTE |52.4 KB |http://127.0.0.1:8080/files/catalog-http/CSAR/Chin |ChinaMobile | + | | | |aMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE | | + | | | |/v1.0/VoLTE.csar | | + +--------------------------------------+--------+----------+----------------------------------------------------+--------------+ diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml new file mode 100644 index 00000000..74fd7554 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml @@ -0,0 +1,63 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: csar-list +description: Lists the CSARs in marketplace + + +info: + product: onap-casablanca + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: csarId + description: CSAR Id + scope: short + type: string + - name: name + description: CSAR Name + scope: short + type: string + - name: size + description: CSAR size + scope: short + type: url + - name: downloadUri + description: CSAR download URL + scope: short + type: url + - name: provider + description: CSAR Provider + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars + method: GET + success_codes: + - 201 + - 200 + result_map: + csarId: $b{$.[*].csarId} + name: $b{$.[*].name} + size: $b{$.[*].size} + downloadUri: $b{$.[*].downloadUri} + provider: $b{$.[*].provider} \ No newline at end of file -- cgit 1.2.3-korg From dfdea78c4bccad33bed8e56fe1faa23e87c08dd5 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:11:05 +0530 Subject: VTP: csar delete cli Issue-ID: VNFSDK-304 Change-Id: I90dbd9945ff5a0d7cdfa9b34ce7c7cfa09b4c454 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/csar-delete-schema-moco.json | 15 ++++++++ .../open-cli-sample/csar-delete-schema-sample.yaml | 9 +++++ .../open-cli-schema/csar-delete-schema.yaml | 41 ++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json new file mode 100644 index 00000000..889ceeaa --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json @@ -0,0 +1,15 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml new file mode 100644 index 00000000..f0e325bd --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml @@ -0,0 +1,9 @@ +open_cli_sample_version: 1.0 +name: csar-delete +version: onap-casablanca +samples: + sample1: + name: csar-delete + input: -m http://localhost:7070/vnf-sdk-marketplace -x a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36 + moco: csar-delete-schema-moco.json + output: \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml new file mode 100644 index 00000000..2915b52d --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml @@ -0,0 +1,41 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: csar-delete +description: Delete CSARs in marketplace + +info: + product: onap-casablanca + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: csar-id + description: Onap CSAR id + type: string + short_option: x + long_option: csar-id + is_optional: false + +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id} + method: DELETE + success_codes: + - 201 + - 200 \ No newline at end of file -- cgit 1.2.3-korg From 28719311ea4fb6b53c59e0f387ef76a652f7b00f Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:30:01 +0530 Subject: VTP: vnftest list cli Issue-ID: VNFSDK-304 Change-Id: Ia5eed214aef4a7a7e5649d0b5c5c17b80634ecca Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-sample/vnftest-list-moco.json | 29 +++++++++++++ .../open-cli-sample/vnftest-list-sample.yaml | 16 ++++++++ .../resources/open-cli-schema/vnftest-list.yaml | 47 ++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json new file mode 100644 index 00000000..42a74b12 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json @@ -0,0 +1,29 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "results" : [ { + "schema" : "vnftest-list.yaml", + "ocs-version" : "1.0", + "sr.no" : "1", + "type" : "http", + "command" : "vnftest-list" + }, { + "schema" : "vtp-validate-csar.yaml", + "ocs-version" : "1.0", + "sr.no" : "2", + "type" : "basic", + "command" : "csar-validate" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml new file mode 100644 index 00000000..dba50c03 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml @@ -0,0 +1,16 @@ +open_cli_sample_version: 1.0 +name: vnftest-list +version: onap-vtp +samples: + sample1: + name: vnftest-list + input: -m http://localhost:7070/vnf-sdk-marketplace + moco: vnftest-list-moco.json + output: | + +----------------+------------------------+ + |tescase |yaml | + +----------------+------------------------+ + |vnftest-list |vnftest-list.yaml | + +----------------+------------------------+ + |csar-validate |vtp-validate-csar.yaml | + +----------------+------------------------+ diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml new file mode 100644 index 00000000..3911fbe5 --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml @@ -0,0 +1,47 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vnftest-list +description: Lists the VNF test cases in VNF Test Platform (VTP) + +info: + product: onap-vtp + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org + +results: + direction: landscape + attributes: + - name: tescase + description: Testcase name + scope: short + type: string + - name: yaml + description: Test case yaml + scope: short + type: string +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests + method: GET + success_codes: + - 201 + - 200 + result_map: + tescase: $b{$.results.[*].command} + yaml: $b{$.results.[*].schema} \ No newline at end of file -- cgit 1.2.3-korg From a8c20e82f3e30c3a3e06c6af6aa4e9a3ad3f1acb Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:30:49 +0530 Subject: VTP: vnftest run cli Issue-ID: VNFSDK-304 Change-Id: I10a859adc7d4b3563390a3d435b5481abcd404ac Signed-off-by: Kanagaraj Manickam k00365106 --- .../resources/open-cli-schema/vnftest-run.yaml | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml new file mode 100644 index 00000000..1cf4586a --- /dev/null +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml @@ -0,0 +1,58 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: vnftest-run +description: Runs the VNF test cases in VNF Test Platform (VTP) + +info: + product: onap-vtp + service: vtp + author: ONAP CLI Team onap-discuss@lists.onap.org +parameters: + - name: name + description: VNFtest case name + type: string + short_option: x + long_option: name + is_optional: false + - name: param + description: VNFtest case name params, and can be repeated. + type: map + short_option: y + long_option: param + is_optional: true + +results: + direction: portrait + attributes: + - name: results + description: Testcase results + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests/S{name}/run + method: GET + body: ${param} + success_codes: + - 201 + - 200 + result_map: + tescase: $b{$.results.[*].command} + yaml: $b{$.results.[*].schema} \ No newline at end of file -- cgit 1.2.3-korg From 63b8a6679843436cab00871c43646bd66034f208 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 11 Sep 2018 14:32:38 +0530 Subject: Migrate VNSDK CLI to market place service Issue-ID: CLI-122 Change-Id: I9b7a3d37c717800aa40e7698285a72a19f40c617 Signed-off-by: Kanagaraj Manickam k00365106 --- .../vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml | 2 +- .../vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml | 2 +- .../vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml | 2 +- .../vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'products/onap-casablanca/features/vnfsdk') diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml index ca758519..7a4b1665 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml @@ -19,7 +19,7 @@ description: Uploads the CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org parameters: diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml index 2915b52d..a05b8d1c 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml @@ -18,7 +18,7 @@ description: Delete CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org parameters: diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml index 74fd7554..452eb35b 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml @@ -19,7 +19,7 @@ description: Lists the CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org results: diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml index 104ddb6c..c124f9bd 100644 --- a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml +++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml @@ -19,7 +19,7 @@ description: Show details of the CSARs in marketplace info: product: onap-casablanca - service: vtp + service: marketplace author: ONAP CLI Team onap-discuss@lists.onap.org parameters: -- cgit 1.2.3-korg