aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/aai/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-13 09:47:08 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-13 09:48:13 +0530
commit745a26defad16dcb89d6804ca02c11899f9205f0 (patch)
tree3613e11f232e3fe92df0c9b8f98f9a743fb06208 /plugins/aai/src
parent4f8bc594e0bf21476aea79b4b916f12f31a12881 (diff)
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 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src')
-rw-r--r--plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml2
-rw-r--r--plugins/aai/src/test/resources/onap-cli-sample/subscription/subscription-list-sample-1.1.yaml9
2 files changed, 10 insertions, 1 deletions
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 |
+ +--------------+------------------+--------------------------------------+----------+----------+