From 4186cfe7b79533639900ec838c42b5467cf00eb7 Mon Sep 17 00:00:00 2001 From: Simran Singhal Date: Tue, 25 Aug 2020 23:54:09 +0530 Subject: Add product etsi-mano Issue-ID: VNFSDK-614 Change-Id: Ic4104a401dc5383b9cc586c12420ff63c7f1f57b Signed-off-by: Simran Singhal --- products/etsi-mano/pom.xml | 74 ++++++++++++++++++++++ ...ubscriptions-method-not-implemented-sample.yaml | 35 ++++++++++ ...ement-subscriptions-method-not-implemented.yaml | 40 ++++++++++++ products/pom.xml | 14 ++++ 4 files changed, 163 insertions(+) create mode 100644 products/etsi-mano/pom.xml create mode 100644 products/etsi-mano/src/main/resources/open-cli-sample/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented-sample.yaml create mode 100644 products/etsi-mano/src/main/resources/open-cli-schema/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented.yaml (limited to 'products') diff --git a/products/etsi-mano/pom.xml b/products/etsi-mano/pom.xml new file mode 100644 index 00000000..c7d4ad90 --- /dev/null +++ b/products/etsi-mano/pom.xml @@ -0,0 +1,74 @@ + + + + + 4.0.0 + + + org.onap.cli + cli-products + 6.0.0-SNAPSHOT + + + cli-products-etsi-mano + cli/products/etsi-mano + jar + + + UTF-8 + java + ${project.build.directory}/surefire-reports + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml + true + ${project.version} + reuseReports + + + + + + org.jacoco + jacoco-maven-plugin + + + prepare-agent + + prepare-agent + + + + report + + report + + + ${project.build.directory}/code-coverage/jacoco.exec + ${project.reporting.outputDirectory}/jacoco-ut + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + diff --git a/products/etsi-mano/src/main/resources/open-cli-sample/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented-sample.yaml b/products/etsi-mano/src/main/resources/open-cli-sample/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented-sample.yaml new file mode 100644 index 00000000..44a28b3a --- /dev/null +++ b/products/etsi-mano/src/main/resources/open-cli-sample/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented-sample.yaml @@ -0,0 +1,35 @@ +# Copyright 2020 Simran Singhal. +# +# 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_sample_version: 1.0 +name: put-nsd-management-subscriptions-method-not-implemented +version: etsi-mano +samples: + sample1: + name: put-nsd-management-subscriptions-method-not-implemented + input: --api-tests-folder-path ./conf + moco: put-nsd-management-subscriptions-method-not-implemented-moco.json + output: | + ============================================================================== + Subscriptions + ============================================================================== + PUT NSD Management Subscriptions - Method not implemented :: Test ... | PASS | + optional methods are not implemented on the FUT. Skipping test. + ------------------------------------------------------------------------------ + Subscriptions | PASS | + 1 critical test, 1 passed, 0 failed + 1 test total, 1 passed, 0 failed + ============================================================================== + Output: /opt/oclip/data/executions/f89f9e46-1ea9-43e0-b4ab-f72ce13b7646/logs/output.xml + diff --git a/products/etsi-mano/src/main/resources/open-cli-schema/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented.yaml b/products/etsi-mano/src/main/resources/open-cli-schema/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented.yaml new file mode 100644 index 00000000..0953bd21 --- /dev/null +++ b/products/etsi-mano/src/main/resources/open-cli-schema/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented.yaml @@ -0,0 +1,40 @@ +# Copyright 2020 Simran Singhal. +# +# 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: put-nsd-management-subscriptions-method-not-implemented + +description: | + Test ID: 5.3.1.7.8 + Test title: PUT NSD Management Subscriptions - Method not implemented + Test objective: The objective is to test that PUT method is not allowed to modify NSD Management subscriptions + Pre-conditions: At least one NSD Management subscription is available in the NFVO. + Reference: clause 5.4.8.3.3 - ETSI GS NFV-SOL 005 [3] v2.4.1 + Config ID: Config_prod_NFVO + Applicability: none + Post-Conditions: none + +info: + product: etsi-mano + service: SOL005 + author: Simran Singhal singhalsimran0@gmail.com + +robot: + command: + - python3 $s{env:OPEN_CLI_HOME}/script/run-robot-testcase.py --variables-file-path ${variables-file-path} --test-suite ${api-tests-folder-path}/api-tests/SOL005/NSDManagement-API/Subscriptions.robot --testcase PUT NSD Management Subscriptions - Method not implemented + success_codes: + - 0 + working_directory: . + output: $stdout \ No newline at end of file diff --git a/products/pom.xml b/products/pom.xml index 5385677b..02a7f242 100644 --- a/products/pom.xml +++ b/products/pom.xml @@ -42,6 +42,11 @@ cli-profiles-snmp ${project.parent.version} + + org.onap.cli + cli-profiles-robot + ${project.parent.version} + @@ -62,6 +67,15 @@ onap-dublin + + etsi-mano + + true + + + etsi-mano + + onap-casablanca -- cgit 1.2.3-korg