subscription-list updates 25/94525/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 11:12:28 +0000 (16:42 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 11:12:28 +0000 (16:42 +0530)
Change-Id: I69f145bde5582c77c698899750b75e7a261e69e6
Issue-ID: CLI-166
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-moco.json
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-list-schema-dublin-sample.yaml

index 8723a86..53b63f9 100644 (file)
@@ -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
     "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"
             } ]
           } ]
         }
index 33e57b7..46a0256 100644 (file)
@@ -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"}]