summaryrefslogtreecommitdiffstats
path: root/products
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:28:37 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:28:37 +0530
commitd4e5c3a357576c73b108063e05e24e9f6c9a49f4 (patch)
tree3d9729de02fdf5aa0af0fab4b9ccc0d9408422a5 /products
parent343affd4836a1e6a8e8336039e1eaab00f9e9502 (diff)
Update subscription create
Issue-ID: CLI-166 Change-Id: Ic2df62c8d21f2aebcc94def8207b7bdcb465f5c1 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-moco.json16
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-sample.yaml30
2 files changed, 17 insertions, 29 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-moco.json
index 1233effd..ed452105 100644
--- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-moco.json
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-moco.json
@@ -1,34 +1,34 @@
[ {
"request" : {
"method" : "put",
- "uri" : "/aai/v14/business/customers/customer/hpa_cust/service-subscriptions/service-subscription/test-service",
+ "uri" : "/aai/v14/business/customers/customer/ovp/service-subscriptions/service-subscription/tosca_vnf_validation",
"headers" : {
"Authorization" : "Basic QUFJOkFBSQ==",
"X-FromAppId" : "ONAP CLI",
"Accept" : "application/json",
- "X-TransactionId" : "req-6c818985-7492-4b34-9994-11753a1f954b",
+ "X-TransactionId" : "req-f3754c09-0a70-4913-b8ed-1273752ad452",
"Content-Type" : "application/json"
},
"json" : {
- "service-type" : "test-service",
+ "service-type" : "tosca_vnf_validation",
"relationship-list" : {
"relationship" : [ {
"related-to" : "tenant",
"relationship-label" : "org.onap.relationships.inventory.Uses",
- "related-link" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-06/tenants/tenant/709ba629fe194f8699b12f9d6ffd86a0",
+ "related-link" : "/aai/v14/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"
+ "property-value" : "ocomp"
} ]
} ]
}
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-sample.yaml
index f48d036b..84fc126f 100644
--- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-sample.yaml
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-sample.yaml
@@ -1,22 +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
+open_cli_sample_version: 1.0
+name: subscription-create
+version: onap-dublin
+samples:
+ sample1:
name: subscription-create
- version: onap-dublin
- samples:
- sample1:
- name: subscription-create
- input: -x hpa_cust -y Integration-HPA -z CloudOwner -e test-service -c 709ba629fe194f8699b12f9d6ffd86a0 -r ONAP-POD-01-Rail-06
- moco: subscription-create-schema-dublin-moco.json
- output: \ No newline at end of file
+ input: --format json --service-type tosca_vnf_validation --cloud-region RegionOVP --cloud-owner OCOMP --tenant-name ocomp --customer-name ovp --cloud-tenant-id 6fcac72c-a2cd-4d18-9f1d-09908ca08afe
+ moco: subscription-create-schema-dublin-moco.json
+ output: |
+ [{}]