Update subscription create 22/94522/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 10:58:37 +0000 (16:28 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 10:58:37 +0000 (16:28 +0530)
Issue-ID: CLI-166

Change-Id: Ic2df62c8d21f2aebcc94def8207b7bdcb465f5c1
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-moco.json
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-dublin-sample.yaml

index 1233eff..ed45210 100644 (file)
@@ -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"
           } ]
         } ]
       }
index f48d036..84fc126 100644 (file)
@@ -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: |
+      [{}]