aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--deployment/docker/pom.xml2
-rw-r--r--deployment/docker/src/main/docker/Dockerfile2
-rw-r--r--deployment/pom.xml2
-rw-r--r--deployment/zip/pom.xml2
-rw-r--r--docs/release-notes.rst6
-rw-r--r--framework/pom.xml2
-rw-r--r--grpc/grpc-client/pom.xml4
-rw-r--r--grpc/grpc-server/pom.xml6
-rw-r--r--grpc/grpc-stub/pom.xml2
-rw-r--r--grpc/pom.xml4
-rw-r--r--main/pom.xml2
-rw-r--r--pom.xml2
-rw-r--r--products/onap-casablanca/auth/pom.xml2
-rw-r--r--products/onap-casablanca/catalog/pom.xml2
-rw-r--r--products/onap-casablanca/features/aai/pom.xml2
-rw-r--r--products/onap-casablanca/features/msb/pom.xml2
-rw-r--r--products/onap-casablanca/features/pom.xml3
-rw-r--r--products/onap-casablanca/features/sdc/pom.xml39
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-moco.json29
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-sample.yaml9
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-moco.json31
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-sample.yaml9
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-moco.json30
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-sample.yaml9
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-moco.json27
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-sample.yaml9
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-moco.json25
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-sample.yaml9
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-moco.json21
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-sample.yaml9
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-moco.json41
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-sample.yaml9
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-moco.json58
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-sample.yaml20
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-casablanca.yaml78
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-casablanca.yaml63
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-casablanca.yaml89
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-casablanca.yaml91
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-casablanca.yaml78
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-casablanca.yaml50
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-casablanca.yaml107
-rw-r--r--products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-casablanca.yaml73
-rw-r--r--products/onap-casablanca/features/vnfsdk/pom.xml2
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json23
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml10
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml2
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml13
-rw-r--r--products/onap-casablanca/pom.xml2
-rw-r--r--products/openecomp/auth/pom.xml2
-rw-r--r--products/openecomp/catalog/pom.xml2
-rw-r--r--products/openecomp/features/aai/pom.xml2
-rw-r--r--products/openecomp/features/pom.xml2
-rw-r--r--products/openecomp/features/sdc/pom.xml2
-rw-r--r--products/openecomp/pom.xml2
-rw-r--r--products/pom.xml2
-rw-r--r--products/sample/pom.xml2
-rw-r--r--profiles/command/pom.xml2
-rw-r--r--profiles/http/pom.xml4
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java14
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java1
-rw-r--r--profiles/pom.xml2
-rw-r--r--profiles/snmp/pom.xml2
-rw-r--r--validate/pom.xml2
-rw-r--r--validate/sample-mock-generator/pom.xml2
-rw-r--r--validate/sample-yaml-generator/pom.xml2
-rw-r--r--validate/validation/pom.xml4
-rw-r--r--version.properties2
68 files changed, 1114 insertions, 55 deletions
diff --git a/README.md b/README.md
index ec82cf5e..b1003e9c 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,7 @@ NOTE: This mode is available as Web command console when OCLIP is running from d
Select the product version
--------------------------
CLI framework is enhanced to handle multiple product versions at same
-time. so to choose the product version, set evironment variable
+time. so to choose the product version, set environment variable
**OPEN_CLI_PROUDCT_IN_USE**.
NOTE: In interactive mode, product version can be selected using
@@ -57,7 +57,7 @@ Run *oclip [-v|--version]* to see the available product version details.
Set the parameter values
------------------------
-Use the directive 'set' for setting the values for parameters and 'unset' for un-seting the values.
+Use the directive 'set' for setting the values for parameters and 'unset' for un-setting the values.
Help
----
diff --git a/deployment/docker/pom.xml b/deployment/docker/pom.xml
index 3b0d4512..7937add8 100644
--- a/deployment/docker/pom.xml
+++ b/deployment/docker/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-deployment</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-docker</artifactId>
diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile
index 0fc2a156..22415d9b 100644
--- a/deployment/docker/src/main/docker/Dockerfile
+++ b/deployment/docker/src/main/docker/Dockerfile
@@ -18,7 +18,7 @@ ENV OPEN_CLI_HOME=/opt/oclip \
OPEN_CLI_DEBUG=false \
OPEN_CLI_DEBUG_PORT=5005 \
OPEN_CLI_MODE=shell \
- OPEN_CLI_PRODUCT_IN_USE=onap-beijing \
+ OPEN_CLI_PRODUCT_IN_USE=onap-casablanca \
GOTTY_TITLE_FORMAT="{{ .command }}" \
OCLIP_GRPC_SERVER="http://oclip_ocs_grpc:50051"
diff --git a/deployment/pom.xml b/deployment/pom.xml
index 27a4d1d0..fe52bfa2 100644
--- a/deployment/pom.xml
+++ b/deployment/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-deployment</artifactId>
diff --git a/deployment/zip/pom.xml b/deployment/zip/pom.xml
index e3036abe..b319dc2a 100644
--- a/deployment/zip/pom.xml
+++ b/deployment/zip/pom.xml
@@ -23,7 +23,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-deployment</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-zip</artifactId>
diff --git a/docs/release-notes.rst b/docs/release-notes.rst
index 33d81f90..70dc2306 100644
--- a/docs/release-notes.rst
+++ b/docs/release-notes.rst
@@ -4,7 +4,7 @@
CLI Release Notes
=================
-Version: 2.0.2
+Version: 2.0.4
--------------
:Release Date: 2018-11-15
@@ -12,7 +12,9 @@ Version: 2.0.2
**New Features**
- Amsterdam support EOL
-
+- Added gRPC to run the ONAP commands over gRPC protocol
+- Added Command profile to support VTP(VNF Test Platform) requirements in VNFSDK and added new commands for supporting it
+- VTP leverages OCLIP for providing the test center (discover the test cases) and test runner (run the test cases)
Version: 2.0.0
--------------
diff --git a/framework/pom.xml b/framework/pom.xml
index 1b7614e8..b5c8e565 100644
--- a/framework/pom.xml
+++ b/framework/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-framework</artifactId>
diff --git a/grpc/grpc-client/pom.xml b/grpc/grpc-client/pom.xml
index 93d2b361..b8ed81b9 100644
--- a/grpc/grpc-client/pom.xml
+++ b/grpc/grpc-client/pom.xml
@@ -18,7 +18,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>oclip-grpc</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1</version>
</parent>
<artifactId>oclip-grpc-client</artifactId>
<name>oclip/grpc/client</name>
@@ -27,7 +27,7 @@
<dependency>
<groupId>org.onap.cli</groupId>
<artifactId>oclip-grpc-stub</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1</version>
</dependency>
</dependencies>
<build>
diff --git a/grpc/grpc-server/pom.xml b/grpc/grpc-server/pom.xml
index 21856479..67dd1f85 100644
--- a/grpc/grpc-server/pom.xml
+++ b/grpc/grpc-server/pom.xml
@@ -18,7 +18,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>oclip-grpc</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1</version>
</parent>
<artifactId>oclip-grpc-server</artifactId>
<name>oclip/grpc/server</name>
@@ -27,12 +27,12 @@
<dependency>
<groupId>org.onap.cli</groupId>
<artifactId>oclip-grpc-stub</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1</version>
</dependency>
<dependency>
<groupId>org.onap.cli</groupId>
<artifactId>cli-main</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</dependency>
</dependencies>
<build>
diff --git a/grpc/grpc-stub/pom.xml b/grpc/grpc-stub/pom.xml
index 9e13c8ec..2c781046 100644
--- a/grpc/grpc-stub/pom.xml
+++ b/grpc/grpc-stub/pom.xml
@@ -18,7 +18,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>oclip-grpc</artifactId>
- <version>1.0.0</version>
+ <version>1.0.1</version>
</parent>
<artifactId>oclip-grpc-stub</artifactId>
<name>oclip/grpc/stub</name>
diff --git a/grpc/pom.xml b/grpc/pom.xml
index 7bc3d77d..640586cc 100644
--- a/grpc/pom.xml
+++ b/grpc/pom.xml
@@ -18,9 +18,9 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
- <version>1.0.0</version>
+ <version>1.0.1</version>
<artifactId>oclip-grpc</artifactId>
<packaging>pom</packaging>
<name>oclip/grpc</name>
diff --git a/main/pom.xml b/main/pom.xml
index 31200fe0..345c36b6 100644
--- a/main/pom.xml
+++ b/main/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-main</artifactId>
diff --git a/pom.xml b/pom.xml
index de2b5f9e..a63ebc10 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,7 +25,7 @@
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
<packaging>pom</packaging>
<name>cli</name>
diff --git a/products/onap-casablanca/auth/pom.xml b/products/onap-casablanca/auth/pom.xml
index 0c97638b..e06a8ca2 100644
--- a/products/onap-casablanca/auth/pom.xml
+++ b/products/onap-casablanca/auth/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-onap-casablanca</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-onap-casablanca-auth</artifactId>
diff --git a/products/onap-casablanca/catalog/pom.xml b/products/onap-casablanca/catalog/pom.xml
index 0a4e806c..68b1d1e1 100644
--- a/products/onap-casablanca/catalog/pom.xml
+++ b/products/onap-casablanca/catalog/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-onap-casablanca</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-onap-casablanca-catalog</artifactId>
diff --git a/products/onap-casablanca/features/aai/pom.xml b/products/onap-casablanca/features/aai/pom.xml
index fb5e0cbc..04446c11 100644
--- a/products/onap-casablanca/features/aai/pom.xml
+++ b/products/onap-casablanca/features/aai/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-onap-casablanca-features</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-onap-casablanca-features-aai</artifactId>
diff --git a/products/onap-casablanca/features/msb/pom.xml b/products/onap-casablanca/features/msb/pom.xml
index 85aac554..fe740439 100644
--- a/products/onap-casablanca/features/msb/pom.xml
+++ b/products/onap-casablanca/features/msb/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-onap-casablanca-features</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-onap-casablanca-features-msb</artifactId>
diff --git a/products/onap-casablanca/features/pom.xml b/products/onap-casablanca/features/pom.xml
index a7b78a90..65ce3492 100644
--- a/products/onap-casablanca/features/pom.xml
+++ b/products/onap-casablanca/features/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-onap-casablanca</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-onap-casablanca-features</artifactId>
@@ -35,6 +35,7 @@
<module>aai</module>
<module>msb</module>
<module>vnfsdk</module>
+ <module>sdc</module>
</modules>
<build>
diff --git a/products/onap-casablanca/features/sdc/pom.xml b/products/onap-casablanca/features/sdc/pom.xml
new file mode 100644
index 00000000..39a4823a
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/pom.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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-onap-casablanca-features</artifactId>
+ <version>2.0.4</version>
+ </parent>
+
+ <artifactId>cli-products-onap-casablanca-features-sdc</artifactId>
+ <name>cli/products/onap-casablanca/features/sdc</name>
+ <packaging>jar</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-moco.json
new file mode 100644
index 00000000..b22f95cc
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-moco.json
@@ -0,0 +1,29 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d8c1362526414b9bbe25cdd972eebf0e/versions/7afd0daa8271470db3b556fdedf074f4/license-agreements",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-84977a57-d8dd-47a9-87fb-6171b3a02db8",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "addedFeatureGroupsIds" : [ "e4ba1e16f22f44c59051dead1fa7d1cf" ],
+ "description" : "Huawei Test license",
+ "licenseTerm" : {
+ "choice" : "Fixed_Term",
+ "other" : ""
+ },
+ "name" : "Test aggrement"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "value" : "ddfcedccb72241a1b87c63be74896322"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..5974d206
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: vlm-aggreement-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: vlm-aggreement-create
+ input: --vlm-id d8c1362526414b9bbe25cdd972eebf0e --vlm-version 7afd0daa8271470db3b556fdedf074f4 --name Test aggrement --description Huawei Test license --vlm-feature-group-id e4ba1e16f22f44c59051dead1fa7d1cf -d
+ moco: vlm-aggreement-create-schema-casablanca-moco.json
+ output: |
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-moco.json
new file mode 100644
index 00000000..b885f3f0
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-moco.json
@@ -0,0 +1,31 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-4692c777-f63e-4e50-a994-b5c208b62a9a",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "vendorName" : "Huawei IN",
+ "description" : "Huawei Test license",
+ "iconRef" : "icon"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "itemId" : "d8c1362526414b9bbe25cdd972eebf0e",
+ "version" : {
+ "id" : "7afd0daa8271470db3b556fdedf074f4",
+ "name" : "1.0",
+ "description" : "Initial version",
+ "status" : "Draft"
+ }
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..2f6384a1
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-create-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: vlm-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: vlm-create
+ input: --vendor-name Huawei IN --description Huawei Test license -d
+ moco: vlm-create-schema-casablanca-moco.json
+ output: |
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-moco.json
new file mode 100644
index 00000000..c4052efe
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-moco.json
@@ -0,0 +1,30 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d8c1362526414b9bbe25cdd972eebf0e/versions/7afd0daa8271470db3b556fdedf074f4/entitlement-pools",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-f141aab8-be09-417a-9363-1ccf1f796280",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "name" : "Test Pool",
+ "time" : {
+ "choice" : "",
+ "other" : ""
+ },
+ "startDate" : "12/12/2018",
+ "expiryDate" : "10/11/2019",
+ "manufacturerReferenceNumber" : "123456"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "value" : "3091c5af38bf4fc3b3e17371c9fecbda"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..50fc98cb
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-entitlement-pool-create-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: vlm-entitlement-pool-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: vlm-entitlement-pool-create
+ input: --vlm-id d8c1362526414b9bbe25cdd972eebf0e --vlm-version 7afd0daa8271470db3b556fdedf074f4 --name Test Pool --description Huawei Test license --manufacture-reference-number 123456 --startDate 12/12/2018 --expiryDate 10/11/2019 -d
+ moco: vlm-entitlement-pool-create-schema-casablanca-moco.json
+ output: |
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-moco.json
new file mode 100644
index 00000000..e2e4a1ad
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-moco.json
@@ -0,0 +1,27 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d8c1362526414b9bbe25cdd972eebf0e/versions/7afd0daa8271470db3b556fdedf074f4/feature-groups",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-aec4e184-23a7-48ac-88fb-96202e971b25",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "name" : "Test key group",
+ "addedLicenseKeyGroupsIds" : [ "f3fd5a1294694f8590051c2755a4a918" ],
+ "addedEntitlementPoolsIds" : [ "3091c5af38bf4fc3b3e17371c9fecbda" ],
+ "partNumber" : "654321",
+ "description" : "Huawei Test license"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "value" : "e4ba1e16f22f44c59051dead1fa7d1cf"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..1b21f99f
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-feature-group-create-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: vlm-feature-group-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: vlm-feature-group-create
+ input: --vlm-id d8c1362526414b9bbe25cdd972eebf0e --vlm-version 7afd0daa8271470db3b556fdedf074f4 --name Test key group --description Huawei Test license --part-number 654321 --vlm-key-group-id f3fd5a1294694f8590051c2755a4a918 --vlm-entitle-pool-id 3091c5af38bf4fc3b3e17371c9fecbda -d
+ moco: vlm-feature-group-create-schema-casablanca-moco.json
+ output: |
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-moco.json
new file mode 100644
index 00000000..d74f37b5
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-moco.json
@@ -0,0 +1,25 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d8c1362526414b9bbe25cdd972eebf0e/versions/7afd0daa8271470db3b556fdedf074f4/license-key-groups",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-9247b01c-1707-42d5-bc83-3402d5c48501",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "description" : "Huawei Test license",
+ "name" : "Test key group",
+ "type" : "Universal"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "value" : "f3fd5a1294694f8590051c2755a4a918"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..58a6ddb6
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-key-group-create-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: vlm-key-group-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: vlm-key-group-create
+ input: --vlm-id d8c1362526414b9bbe25cdd972eebf0e --vlm-version 7afd0daa8271470db3b556fdedf074f4 --name Test key group --description Huawei Test license -d
+ moco: vlm-key-group-create-schema-casablanca-moco.json
+ output: |
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-moco.json
new file mode 100644
index 00000000..7460914b
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-moco.json
@@ -0,0 +1,21 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/d8c1362526414b9bbe25cdd972eebf0e/versions/7afd0daa8271470db3b556fdedf074f4/actions",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-bb4ab620-1c37-48f0-9fe1-96df9838c0ed",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "action" : "Submit"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : { }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..d107005d
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-submit-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: vlm-submit
+version: onap-casablanca
+samples:
+ sample1:
+ name: vlm-submit
+ input: --vlm-id d8c1362526414b9bbe25cdd972eebf0e --vlm-version 7afd0daa8271470db3b556fdedf074f4 -d
+ moco: vlm-submit-schema-casablanca-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-moco.json
new file mode 100644
index 00000000..7720cc9e
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-moco.json
@@ -0,0 +1,41 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-2d36d422-79f1-4d8e-bada-dee0e32266c2",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "category" : "resourceNewCategory.generic",
+ "vendorId" : "d8c1362526414b9bbe25cdd972eebf0e",
+ "subCategory" : "resourceNewCategory.generic.abstract",
+ "description" : "vFW sample vsp",
+ "licensingVersion" : "7afd0daa8271470db3b556fdedf074f4",
+ "licensingData" : {
+ "featureGroups" : [ "e4ba1e16f22f44c59051dead1fa7d1cf" ],
+ "licenseAgreement" : "ddfcedccb72241a1b87c63be74896322"
+ },
+ "icon" : "icon",
+ "onboardingMethod" : "Manual",
+ "vendorName" : "Huawei IN",
+ "name" : "vFW software"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "itemId" : "5223ac6156ce4a5fb3b33ab205f34c6e",
+ "version" : {
+ "id" : "0732aefa14634e398f16ccfdabc8ed0a",
+ "name" : "1.0",
+ "description" : "Initial version",
+ "status" : "Draft"
+ }
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..a89fc626
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: vsp-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: vsp-create
+ input: --vsp-name vFW software --vsp-description vFW sample vsp --vlm-id d8c1362526414b9bbe25cdd972eebf0e --vlm-version 7afd0daa8271470db3b556fdedf074f4 --vlm-feature-group-id e4ba1e16f22f44c59051dead1fa7d1cf --vlm-agreement-id ddfcedccb72241a1b87c63be74896322 --vlm-vendor Huawei IN -d
+ moco: vsp-create-schema-casablanca-moco.json
+ output: |
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-moco.json b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-moco.json
new file mode 100644
index 00000000..f66bcdb1
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-moco.json
@@ -0,0 +1,58 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-373a1f99-8c3a-43b8-8b27-7d2d75dc60bb",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "listCount" : 4,
+ "results" : [ {
+ "name" : "vFW software",
+ "description" : "vFW sample vsp",
+ "vendorName" : "Huawei IN",
+ "vendorId" : "d8c1362526414b9bbe25cdd972eebf0e",
+ "onboardingMethod" : "Manual",
+ "id" : "5223ac6156ce4a5fb3b33ab205f34c6e",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test123",
+ "description" : "test",
+ "vendorName" : "Huawei IN",
+ "vendorId" : "d8c1362526414b9bbe25cdd972eebf0e",
+ "onboardingMethod" : "Manual",
+ "id" : "83f9c5d846044f81b3b94e15aaaafb0b",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test",
+ "description" : "test",
+ "vendorName" : "hw",
+ "vendorId" : "efd7a4cece974be7ad8d7798b17f9621",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "3cf5d987d1d444be8b172b3744bcbe0c",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test1",
+ "description" : "test",
+ "vendorName" : "Huawei IN",
+ "vendorId" : "d8c1362526414b9bbe25cdd972eebf0e",
+ "onboardingMethod" : "Manual",
+ "id" : "3ee1964d46834c0eaa4f9909bf40b961",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..50614092
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-casablanca-sample.yaml
@@ -0,0 +1,20 @@
+open_cli_sample_version: 1.0
+name: vsp-list
+version: onap-casablanca
+samples:
+ sample1:
+ name: vsp-list
+ input: -d
+ moco: vsp-list-schema-casablanca-moco.json
+ output: |
+ +----------------------------------+--------------+----------+--------+
+ |ID |name |version |status |
+ +----------------------------------+--------------+----------+--------+
+ |5223ac6156ce4a5fb3b33ab205f34c6e |vFW software | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
+ |83f9c5d846044f81b3b94e15aaaafb0b |test123 | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
+ |3cf5d987d1d444be8b172b3744bcbe0c |test | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
+ |3ee1964d46834c0eaa4f9909bf40b961 |test1 | |ACTIVE |
+ +----------------------------------+--------------+----------+--------+
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-casablanca.yaml
new file mode 100644
index 00000000..b1a3d2a1
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-casablanca.yaml
@@ -0,0 +1,78 @@
+# 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: vlm-aggreement-create
+description: Create license aggreement
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: name
+ description: aggreement name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: description
+ description: Description for aggreement
+ type: string
+ short_option: z
+ long_option: description
+ is_optional: false
+ - name: vlm-feature-group-id
+ description: VLM feature group
+ type: string
+ short_option: g
+ long_option: vlm-feature-group-id
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: aggreement ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements
+ method: POST
+ body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "description": "${description}", "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}'
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{$.value}
+ sample_response:
+ body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-casablanca.yaml
new file mode 100644
index 00000000..74f8cbad
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-casablanca.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: vlm-create
+description: Create License Model
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vendor-name
+ description: vendor name
+ type: string
+ short_option: x
+ long_option: vendor-name
+ is_optional: false
+ - name: description
+ description: Description for License Model
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: License Model ID
+ scope: short
+ type: uuid
+ - name: version
+ description: License Model version
+ scope: short
+ type: uuid
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models
+ method: POST
+ body: '{"vendorName": "${vendor-name}", "description": "${description}", "iconRef": "icon"}'
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{$.itemId}
+ version: $b{$.version.id} \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-casablanca.yaml
new file mode 100644
index 00000000..039bb0c5
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-casablanca.yaml
@@ -0,0 +1,89 @@
+# 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: vlm-entitlement-pool-create
+description: Create Entitlement Pool
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Entitlement Pool name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: description
+ description: Description for Entitlement Pool
+ type: string
+ short_option: z
+ long_option: description
+ is_optional: false
+ - name: manufacture-reference-number
+ description: Manufature Reference Number
+ type: string
+ short_option: k
+ long_option: manufacture-reference-number
+ is_optional: false
+ - name: startDate
+ description: License start date (MM/DD/YYYY)
+ type: string
+ short_option: l
+ long_option: startDate
+ is_optional: false
+ - name: expiryDate
+ description: License end date (MM/DD/YYYY)
+ type: string
+ short_option: g
+ long_option: expiryDate
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: Entitlement Pool ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools
+ method: POST
+ body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${startDate}","expiryDate":"${expiryDate}","manufacturerReferenceNumber":"${manufacture-reference-number}"}'
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{$.value}
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-casablanca.yaml
new file mode 100644
index 00000000..90a43e27
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-casablanca.yaml
@@ -0,0 +1,91 @@
+# 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: vlm-feature-group-create
+description: Create feature group Pool
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: name
+ description: Feature group name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: description
+ description: Description for feature group
+ type: string
+ short_option: z
+ long_option: description
+ is_optional: false
+ - name: vlm-key-group-id
+ description: VLM keygroup
+ type: string
+ short_option: g
+ long_option: vlm-key-group-id
+ is_optional: false
+ - name: vlm-entitle-pool-id
+ description: VLM Entitlement pool
+ type: string
+ short_option: b
+ long_option: vlm-entitle-pool-id
+ is_optional: false
+ - name: part-number
+ description: Part number
+ type: string
+ short_option: c
+ long_option: part-number
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: Feature group ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups
+ method: POST
+ body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}", "description": "${description}"}'
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{$.value}
+ sample_response:
+ body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}'
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-casablanca.yaml
new file mode 100644
index 00000000..f26a463b
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-casablanca.yaml
@@ -0,0 +1,78 @@
+# 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: vlm-key-group-create
+description: Create License Key Group
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vlm-id
+ description: License Model Id
+ type: string
+ short_option: c
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: e
+ long_option: vlm-version
+ is_optional: false
+ - name: name
+ description: name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: type
+ description: type of group (Universal, unique, one-time)
+ type: string
+ short_option: y
+ long_option: type
+ is_optional: false
+ default_value: Universal
+ - name: description
+ description: Description for License Key Group
+ type: string
+ short_option: z
+ long_option: description
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: License Model ID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups
+ method: POST
+ body: '{"description": "${description}", "name": "${name}", "type": "${type}"}'
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{$.value} \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-casablanca.yaml
new file mode 100644
index 00000000..44201671
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-casablanca.yaml
@@ -0,0 +1,50 @@
+# 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: vlm-submit
+description: Submit Vendor License Model
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vlm-id
+ description: Onap VLM ID
+ type: string
+ short_option: x
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: VLM version
+ type: string
+ short_option: y
+ long_option: vlm-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/actions
+ method: PUT
+ body: '{"action": "Submit"}'
+ success_codes:
+ - 201
+ - 200
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-casablanca.yaml
new file mode 100644
index 00000000..095face5
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-casablanca.yaml
@@ -0,0 +1,107 @@
+# 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: vsp-create
+description: Create Vendor Software Product
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-name
+ description: Onap VSP Name
+ type: string
+ short_option: x
+ long_option: vsp-name
+ is_optional: false
+ - name: vsp-description
+ description: Description for VSP
+ type: string
+ short_option: y
+ long_option: vsp-description
+ is_optional: true
+ - name: vsp-category
+ description: Category of the VSP
+ type: string
+ long_option: vsp-category
+ short_option: z
+ is_optional: true
+ default_value: resourceNewCategory.generic
+ - name: vsp-subcategory
+ description: Sub Category of VSP
+ type: string
+ long_option: vsp-subcategory
+ short_option: b
+ is_optional: true
+ default_value: resourceNewCategory.generic.abstract
+ - name: vlm-version
+ description: License version
+ type: string
+ long_option: vlm-version
+ short_option: c
+ is_optional: true
+ default_value: 1.0
+ - name: vlm-vendor
+ description: License Model vendor
+ type: string
+ long_option: vlm-vendor
+ short_option: e
+ is_optional: false
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ long_option: vlm-id
+ short_option: g
+ is_optional: false
+ - name: vlm-agreement-id
+ description: License Agreement ID
+ type: string
+ long_option: vlm-agreement-id
+ short_option: i
+ is_optional: false
+ - name: vlm-feature-group-id
+ description: Feature Group ID
+ type: string
+ long_option: vlm-feature-group-id
+ short_option: j
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: ID
+ description: VSP ID
+ scope: short
+ type: string
+ - name: version
+ description: VSP Model version
+ scope: short
+ type: uuid
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products
+ method: POST
+ body: '{"category": "${vsp-category}", "vendorId": "${vlm-id}", "subCategory": "${vsp-subcategory}", "description": "${vsp-description}", "licensingVersion": "${vlm-version}", "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"}, "icon": "icon", "onboardingMethod": "Manual", "vendorName": "${vlm-vendor}", "name": "${vsp-name}"}'
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{$.vspId}
+ version: $b{$.version.id} \ No newline at end of file
diff --git a/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-casablanca.yaml b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-casablanca.yaml
new file mode 100644
index 00000000..95d62c9e
--- /dev/null
+++ b/products/onap-casablanca/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema-casablanca.yaml
@@ -0,0 +1,73 @@
+# 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: vsp-list
+description: List of the Vendor Software Products
+
+info:
+ product: onap-casablanca
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: ID
+ description: VSP ID
+ scope: short
+ type: string
+ - name: name
+ description: VSP Name
+ scope: short
+ type: string
+ - name: vendor-name
+ description: Vendor name
+ scope: long
+ type: string
+ - name: version
+ description: Version
+ scope: short
+ type: string
+ - name: status
+ description: status
+ scope: short
+ type: string
+ - name: license-id
+ description: license aggreement
+ scope: long
+ type: string
+ - name: license-version
+ description: license version
+ scope: long
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{results.[*].id}
+ name: $b{results.[*].name}
+ vendor-name: $b{results.[*].vendorName}
+ version: $b{results.[*].version.id}
+ status: $b{results.[*].status}
+ license-id: $b{results.[*].licensingData.licenseAgreement}
+ license-version: $b{results.[*].licensingVersion.id}
diff --git a/products/onap-casablanca/features/vnfsdk/pom.xml b/products/onap-casablanca/features/vnfsdk/pom.xml
index 6c3ca724..b8ce00b1 100644
--- a/products/onap-casablanca/features/vnfsdk/pom.xml
+++ b/products/onap-casablanca/features/vnfsdk/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-onap-casablanca-features</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-onap-casablanca-features-vnfsdk</artifactId>
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json
new file mode 100644
index 00000000..e598a1b1
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-moco.json
@@ -0,0 +1,23 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/vtp/tests/csar-validate/run",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "csar" : "D:\\workspace\\onap\\1.1\\vnfsdk\\validation\\csarvalidation\\src\\test\\resources\\USN.csar"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "results" : [ {
+ "error" : "SUCCESS"
+ } ],
+ "build_tag" : null,
+ "criteria" : "PASS"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml
new file mode 100644
index 00000000..c672b853
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-run-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: vnftest-run
+version: onap-vtp
+samples:
+ sample1:
+ name: vnftest-run
+ input: --name csar-validate --param csar=D:\workspace\onap\1.1\vnfsdk\validation\csarvalidation\src\test\resources\USN.csar --format json
+ moco: vnftest-run-moco.json
+ output: |
+ {"results":[{"property":"results","value":"{error=SUCCESS}"},{"property":"build_tag","value":"null"},{"property":"criteria","value":"PASS"}]}
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 64b390e2..d1728745 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
@@ -46,8 +46,6 @@ http:
method: POST
body: ${csar-file}
multipart_entity_name: file
- headers:
- Content-Type: multipart/form-data
success_codes:
- 200
result_map:
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
index 6e6aa0f6..6873d6c9 100644
--- 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
@@ -41,7 +41,15 @@ results:
description: Testcase results
scope: short
type: string
-
+ - name: build_tag
+ description: Test Running identifier
+ scope: short
+ type: string
+ default_value: $s{env:BUILD_TAG}
+ - name: criteria
+ description: Testcase is PASS or FAILED
+ scope: short
+ type: string
http:
service:
auth: none
@@ -54,4 +62,5 @@ http:
- 201
- 200
result_map:
- results: $b{$.results} \ No newline at end of file
+ results: $b{$.results}
+ criteria: $b{$.criteria} \ No newline at end of file
diff --git a/products/onap-casablanca/pom.xml b/products/onap-casablanca/pom.xml
index d08c4c7e..1e6a4df2 100644
--- a/products/onap-casablanca/pom.xml
+++ b/products/onap-casablanca/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-onap-casablanca</artifactId>
diff --git a/products/openecomp/auth/pom.xml b/products/openecomp/auth/pom.xml
index f204c836..ae4564a1 100644
--- a/products/openecomp/auth/pom.xml
+++ b/products/openecomp/auth/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-openecomp</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-openecomp-auth</artifactId>
diff --git a/products/openecomp/catalog/pom.xml b/products/openecomp/catalog/pom.xml
index 088ef895..0c55a8c5 100644
--- a/products/openecomp/catalog/pom.xml
+++ b/products/openecomp/catalog/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-openecomp</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-openecomp-catalog</artifactId>
diff --git a/products/openecomp/features/aai/pom.xml b/products/openecomp/features/aai/pom.xml
index 91ee4606..5f86fcb2 100644
--- a/products/openecomp/features/aai/pom.xml
+++ b/products/openecomp/features/aai/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-openecomp-features</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-openecomp-features-aai</artifactId>
diff --git a/products/openecomp/features/pom.xml b/products/openecomp/features/pom.xml
index 4746d4b2..9a175543 100644
--- a/products/openecomp/features/pom.xml
+++ b/products/openecomp/features/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-openecomp</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-openecomp-features</artifactId>
diff --git a/products/openecomp/features/sdc/pom.xml b/products/openecomp/features/sdc/pom.xml
index aa8f3065..86c0b92b 100644
--- a/products/openecomp/features/sdc/pom.xml
+++ b/products/openecomp/features/sdc/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products-openecomp-features</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-openecomp-features-sdc</artifactId>
diff --git a/products/openecomp/pom.xml b/products/openecomp/pom.xml
index 83d34324..98b725a9 100644
--- a/products/openecomp/pom.xml
+++ b/products/openecomp/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-openecomp</artifactId>
diff --git a/products/pom.xml b/products/pom.xml
index 7f795f40..3e0d7892 100644
--- a/products/pom.xml
+++ b/products/pom.xml
@@ -19,7 +19,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products</artifactId>
diff --git a/products/sample/pom.xml b/products/sample/pom.xml
index 27431098..d339e439 100644
--- a/products/sample/pom.xml
+++ b/products/sample/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-products</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-products-sample</artifactId>
diff --git a/profiles/command/pom.xml b/profiles/command/pom.xml
index 959cfe3e..c4faa90f 100644
--- a/profiles/command/pom.xml
+++ b/profiles/command/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-profiles</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-profiles-command</artifactId>
diff --git a/profiles/http/pom.xml b/profiles/http/pom.xml
index 321970af..ac2f089f 100644
--- a/profiles/http/pom.xml
+++ b/profiles/http/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-profiles</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-profiles-http</artifactId>
@@ -45,7 +45,7 @@
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
- <version>4.0.1</version>
+ <version>4.3.5</version>
<scope>compile</scope>
</dependency>
<dependency>
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
index b21c2575..b86ef26b 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
@@ -54,9 +54,9 @@ import org.apache.http.conn.ssl.AllowAllHostnameVerifier;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.X509HostnameVerifier;
import org.apache.http.cookie.Cookie;
+import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
-import org.apache.http.entity.mime.MultipartEntity;
-import org.apache.http.entity.mime.content.FileBody;
+import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.impl.client.BasicCookieStore;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.client.LaxRedirectStrategy;
@@ -365,10 +365,12 @@ public class OnapHttpConnection {
}
private HttpEntity getMultipartEntity(HttpInput input) {
- FileBody fileBody = new FileBody(new File(input.getBody().trim()));
- MultipartEntity multipartEntity = new MultipartEntity();
- String fileName = input.getMultipartEntityName() != "" ? input.getMultipartEntityName() : "upload";
- multipartEntity.addPart(fileName, fileBody);
+ String fileTag = input.getMultipartEntityName() != "" ? input.getMultipartEntityName() : "file";
+ File file = new File(input.getBody().trim());
+ HttpEntity multipartEntity = MultipartEntityBuilder
+ .create()
+ .addBinaryBody(fileTag, file, ContentType.create("application/octet-stream"), file.getName())
+ .build();
return multipartEntity;
}
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java b/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java
index ed415335..a0c96cad 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java
@@ -73,6 +73,7 @@ public class OnapCommandHttpUtils {
break;
}
}
+ inp.setMultipartEntityName(input.getMultipartEntityName());
inp.setBody(OnapCommandUtils.replaceLineFromInputParameters(input.getBody(), params));
inp.setUri(OnapCommandUtils.replaceLineFromInputParameters(input.getUri(), params));
inp.setMethod(input.getMethod().toLowerCase());
diff --git a/profiles/pom.xml b/profiles/pom.xml
index 2601c023..2ddee696 100644
--- a/profiles/pom.xml
+++ b/profiles/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-profiles</artifactId>
diff --git a/profiles/snmp/pom.xml b/profiles/snmp/pom.xml
index 14ab773c..15b52992 100644
--- a/profiles/snmp/pom.xml
+++ b/profiles/snmp/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-profiles</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-profiles-snmp</artifactId>
diff --git a/validate/pom.xml b/validate/pom.xml
index 9285426e..56370fee 100644
--- a/validate/pom.xml
+++ b/validate/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-validate</artifactId>
diff --git a/validate/sample-mock-generator/pom.xml b/validate/sample-mock-generator/pom.xml
index 43fad2a7..bf88f98c 100644
--- a/validate/sample-mock-generator/pom.xml
+++ b/validate/sample-mock-generator/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-validate</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-sample-mock-generator</artifactId>
diff --git a/validate/sample-yaml-generator/pom.xml b/validate/sample-yaml-generator/pom.xml
index 427e2020..a2baa08f 100644
--- a/validate/sample-yaml-generator/pom.xml
+++ b/validate/sample-yaml-generator/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-validate</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-sample-yaml-generator</artifactId>
diff --git a/validate/validation/pom.xml b/validate/validation/pom.xml
index 3b493295..00bf9817 100644
--- a/validate/validation/pom.xml
+++ b/validate/validation/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.onap.cli</groupId>
<artifactId>cli-validate</artifactId>
- <version>2.0.3</version>
+ <version>2.0.4</version>
</parent>
<artifactId>cli-validation</artifactId>
@@ -45,7 +45,7 @@
</dependency>
<dependency>
<groupId>org.onap.cli</groupId>
- <artifactId>cli-products-onap-beijing-catalog</artifactId>
+ <artifactId>cli-products-onap-casablanca-catalog</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
diff --git a/version.properties b/version.properties
index f4e7474a..5b26e150 100644
--- a/version.properties
+++ b/version.properties
@@ -16,7 +16,7 @@
major=2
minor=0
-patch=3
+patch=4
base_version=${major}.${minor}.${patch}