From e74171b29d3cdf3ed50796138ea67561ec624f43 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 27 Oct 2017 10:14:23 +0530 Subject: Add sample for subscription-create CLI-57 Change-Id: If7d4ba751b34a3994a0b8be6d3b4d51e87680f8e Signed-off-by: Kanagaraj Manickam k00365106 --- .../subscription-create-sample-1.1.yaml | 8 ----- .../subscription-create-schema-1.1-moco.json | 35 ++++++++++++++++++++++ .../subscription-create-schema-1.1-sample.yaml | 9 ++++++ 3 files changed, 44 insertions(+), 8 deletions(-) delete mode 100644 plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-sample-1.1.yaml create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-moco.json create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-create-schema-1.1-sample.yaml (limited to 'plugins') 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 -- cgit 1.2.3-korg