diff options
author | Simran Singhal <singhalsimran0@gmail.com> | 2020-08-25 23:54:09 +0530 |
---|---|---|
committer | Simran Singhal <singhalsimran0@gmail.com> | 2020-10-03 18:55:44 +0530 |
commit | 4186cfe7b79533639900ec838c42b5467cf00eb7 (patch) | |
tree | 614df2964cc4bace46b8b7f82e044c3cb3a643d0 /products | |
parent | 27639098e45be8614993be0302f63ba38613a452 (diff) |
Add product etsi-mano
Issue-ID: VNFSDK-614
Change-Id: Ic4104a401dc5383b9cc586c12420ff63c7f1f57b
Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
Diffstat (limited to 'products')
4 files changed, 163 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. + --> + +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.onap.cli</groupId> + <artifactId>cli-products</artifactId> + <version>6.0.0-SNAPSHOT</version> + </parent> + + <artifactId>cli-products-etsi-mano</artifactId> + <name>cli/products/etsi-mano</name> + <packaging>jar</packaging> + <!--Step-1:- SonarCloud migration from SonarQube --> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <sonar.language>java</sonar.language> + <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> + <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> + <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> + <sonar.projectVersion>${project.version}</sonar.projectVersion> + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> + </properties> + <build> + <plugins> + <!--Step-2:- SonarCloud migration from SonarQube --> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>report</id> + <goals> + <goal>report</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + </plugin> + </plugins> + </build> +</project> 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 @@ <artifactId>cli-profiles-snmp</artifactId> <version>${project.parent.version}</version> </dependency> + <dependency> + <groupId>org.onap.cli</groupId> + <artifactId>cli-profiles-robot</artifactId> + <version>${project.parent.version}</version> + </dependency> </dependencies> <profiles> <profile> @@ -63,6 +68,15 @@ </modules> </profile> <profile> + <id>etsi-mano</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <modules> + <module>etsi-mano</module> + </modules> + </profile> + <profile> <id>onap-casablanca</id> <activation> <activeByDefault>false</activeByDefault> |