Add product etsi-mano 06/111706/4
authorSimran Singhal <singhalsimran0@gmail.com>
Tue, 25 Aug 2020 18:24:09 +0000 (23:54 +0530)
committerSimran Singhal <singhalsimran0@gmail.com>
Sat, 3 Oct 2020 13:25:44 +0000 (18:55 +0530)
Issue-ID: VNFSDK-614

Change-Id: Ic4104a401dc5383b9cc586c12420ff63c7f1f57b
Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
products/etsi-mano/pom.xml [new file with mode: 0644]
products/etsi-mano/src/main/resources/open-cli-sample/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented-sample.yaml [new file with mode: 0644]
products/etsi-mano/src/main/resources/open-cli-schema/SOL005/NSDManagement-API/Subscriptions/put-nsd-management-subscriptions-method-not-implemented.yaml [new file with mode: 0644]
products/pom.xml

diff --git a/products/etsi-mano/pom.xml b/products/etsi-mano/pom.xml
new file mode 100644 (file)
index 0000000..c7d4ad9
--- /dev/null
@@ -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 (file)
index 0000000..44a28b3
--- /dev/null
@@ -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 (file)
index 0000000..0953bd2
--- /dev/null
@@ -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
index 5385677..02a7f24 100644 (file)
             <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>
             <module>onap-dublin</module>
           </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>