From 745a26defad16dcb89d6804ca02c11899f9205f0 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 13 Sep 2017 09:47:08 +0530 Subject: Fix subscription creation command subscription-create has invalide PUT json body and is fixed. CLI-13 Change-Id: Ie5cae994606547c60ef07ea4a08dd5135fce62d0 Signed-off-by: Kanagaraj Manickam k00365106 --- .../subscription/subscription-create-schema-1.1.yaml | 2 +- .../subscription/subscription-list-sample-1.1.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml index 68bb9311..95f11308 100644 --- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml +++ b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml @@ -44,7 +44,7 @@ http: request: uri: /aai/v11/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type} method: PUT - body: '{"service-subscription":[{"relationship-list":{"relationship":[{"related-to":"tenant","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"${cloud-name}"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"${cloud-region}"},{"relationship-key":"tenant.tenant-id","relationship-value":"${cloud-tenant-id}"}]}]},"service-type":"${service-type}"}]}' + body: '{"relationship-list":{"relationship":[{"related-to":"tenant","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"${cloud-name}"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"${cloud-region}"},{"relationship-key":"tenant.tenant-id","relationship-value":"${cloud-tenant-id}"}]}]},"service-type":"${service-type}"}' success_codes: - 200 - 201 diff --git a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml index c4c6f206..98880aad 100644 --- a/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml +++ b/plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml @@ -14,3 +14,12 @@ samples: +--------------+------------------+ + sample2: + name: List the configured subscription in onap for a given customer with complete details + input: -h https://locahost:8443 -u AAI -p AAI -x customer-4 --long + output: | + +--------------+------------------+--------------------------------------+----------+----------+ + |service-type |resource-version |tenant |region |cloud | + +--------------+------------------+--------------------------------------+----------+----------+ + |vTest |1505276255854 |3853ca3c-3bc3-4500-9ddf-08e8cca5493f |region-1 |cloud-1 | + +--------------+------------------+--------------------------------------+----------+----------+ -- cgit 1.2.3-korg