summaryrefslogtreecommitdiffstats
path: root/products/onap-dublin
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:42:28 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:42:28 +0530
commit9748756adde90bcfc1952d759cfaf7c57ebe9aea (patch)
tree5e21ad7c02a6840d908ea17bd2ee804e0c34fd7b /products/onap-dublin
parent6376c359b137d9e5490b3fd1fa59cba7610c0e7f (diff)
subscription-list updates
Change-Id: I69f145bde5582c77c698899750b75e7a261e69e6 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-moco.json54
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-sample.yaml37
2 files changed, 19 insertions, 72 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-moco.json
index 8723a866..53b63f96 100644
--- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-moco.json
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-moco.json
@@ -1,12 +1,12 @@
[ {
"request" : {
"method" : "get",
- "uri" : "/aai/v13/business/customers/customer/hpa_cust/service-subscriptions",
+ "uri" : "/aai/v13/business/customers/customer/ovp/service-subscriptions",
"headers" : {
"Authorization" : "Basic QUFJOkFBSQ==",
"X-FromAppId" : "ONAP CLI",
"Accept" : "application/json",
- "X-TransactionId" : "req-0617d23c-c9af-473a-9045-e964fd12d81f",
+ "X-TransactionId" : "req-46b9c555-2eef-4747-8830-8a58b6f610b3",
"Content-Type" : "application/json"
},
"json" : null
@@ -15,62 +15,26 @@
"status" : 200,
"json" : {
"service-subscription" : [ {
- "service-type" : "vfwhpa",
- "resource-version" : "1552436330116",
+ "service-type" : "tosca_vnf_validation",
+ "resource-version" : "1567068689784",
"relationship-list" : {
"relationship" : [ {
"related-to" : "tenant",
"relationship-label" : "org.onap.relationships.inventory.Uses",
- "related-link" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-06/tenants/tenant/709ba629fe194f8699b12f9d6ffd86a0",
+ "related-link" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants/tenant/6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
"relationship-data" : [ {
"relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "CloudOwner"
+ "relationship-value" : "OCOMP"
}, {
"relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "ONAP-POD-01-Rail-06"
+ "relationship-value" : "RegionOVP"
}, {
"relationship-key" : "tenant.tenant-id",
- "relationship-value" : "709ba629fe194f8699b12f9d6ffd86a0"
+ "relationship-value" : "6fcac72c-a2cd-4d18-9f1d-09908ca08afe"
} ],
"related-to-property" : [ {
"property-key" : "tenant.tenant-name",
- "property-value" : "Integration-HPA"
- } ]
- }, {
- "related-to" : "tenant",
- "relationship-label" : "org.onap.relationships.inventory.Uses",
- "related-link" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-04/tenants/tenant/709ba629fe194f8699b12f9d6ffd86a0",
- "relationship-data" : [ {
- "relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "CloudOwner"
- }, {
- "relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "ONAP-POD-01-Rail-04"
- }, {
- "relationship-key" : "tenant.tenant-id",
- "relationship-value" : "709ba629fe194f8699b12f9d6ffd86a0"
- } ],
- "related-to-property" : [ {
- "property-key" : "tenant.tenant-name",
- "property-value" : "Integration-HPA"
- } ]
- }, {
- "related-to" : "tenant",
- "relationship-label" : "org.onap.relationships.inventory.Uses",
- "related-link" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-05/tenants/tenant/709ba629fe194f8699b12f9d6ffd86a0",
- "relationship-data" : [ {
- "relationship-key" : "cloud-region.cloud-owner",
- "relationship-value" : "CloudOwner"
- }, {
- "relationship-key" : "cloud-region.cloud-region-id",
- "relationship-value" : "ONAP-POD-01-Rail-05"
- }, {
- "relationship-key" : "tenant.tenant-id",
- "relationship-value" : "709ba629fe194f8699b12f9d6ffd86a0"
- } ],
- "related-to-property" : [ {
- "property-key" : "tenant.tenant-name",
- "property-value" : "Integration-HPA"
+ "property-value" : "ocomp"
} ]
} ]
}
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-sample.yaml
index 33e57b79..46a0256e 100644
--- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-sample.yaml
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-sample.yaml
@@ -1,27 +1,10 @@
-# Copyright © Intel Corporation 2019
-#
-# 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_sample_version: 1.0
- name: subscription-list
- version: onap-dublin
- samples:
- sample1:
- name: subscription-list
- input: -x hpa_cust
- moco: subscription-list-schema-dublin-moco.json
- output: |
- +--------------+------------------+
- |service-type |resource-version |
- +--------------+------------------+
- |vfwhpa |1552436330116 |
- +--------------+------------------+
+open_cli_sample_version: 1.0
+name: subscription-list
+version: onap-dublin
+samples:
+ sample1:
+ name: subscription-list
+ input: --format json --customer-name ovp
+ moco: subscription-list-schema-dublin-moco.json
+ output: |
+ [{"resource-version":"1567068689784","service-type":"tosca_vnf_validation"}]