aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-27 10:14:23 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2017-10-27 04:52:46 +0000
commite74171b29d3cdf3ed50796138ea67561ec624f43 (patch)
tree84980c38fe5af93ffa0cc036b18138516cae066e
parent9f140e6123cc99f943d3545df04346a2f2382aec (diff)
Add sample for subscription-create
CLI-57 Change-Id: If7d4ba751b34a3994a0b8be6d3b4d51e87680f8e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml8
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-moco.json35
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-sample.yaml9
3 files changed, 44 insertions, 8 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml
deleted file mode 100644
index b33cf597..00000000
--- a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-onap_cli_sample_version: 1.0
-
-name: subscription-create
-version: onap-1.1
-samples:
- sample1:
- name: Create a subscription
- input: -h https://locahost:8443 -u AAI -p AAI -x customer-4 -y subscriber-4 -z abc-xyz -r ABCXYZ25 -c 8bcf4466-b092-473f-889b-7f40efb5a323 -e vTest
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-moco.json
new file mode 100644
index 00000000..13ec1e2b
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-moco.json
@@ -0,0 +1,35 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v11/business/customers/customer/kanag/service-subscriptions/service-subscription/vFW-kanag",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-2f281cd8-98da-4cb5-899e-294d9bf7b03d",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "tenant",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "huawei-cloud"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "bangalore"
+ }, {
+ "relationship-key" : "tenant.tenant-id",
+ "relationship-value" : "e18173e6-6a13-4614-a13c-3859e7321103"
+ } ]
+ } ]
+ },
+ "service-type" : "vFW-kanag"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-sample.yaml
new file mode 100644
index 00000000..fdbb801f
--- /dev/null
+++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-sample.yaml
@@ -0,0 +1,9 @@
+onap_cli_sample_version: 1.0
+name: subscription-create
+version: onap-1.1
+samples:
+ sample1:
+ name: subscription-create
+ input: --customer-name kanag --cloud-name huawei-cloud --cloud-region bangalore --cloud-tenant-id e18173e6-6a13-4614-a13c-3859e7321103 --service-type vFW-kanag
+ moco: subscription-create-schema-1.1-moco.json
+ ouput: \ No newline at end of file