Update AAI plugin to fetch service profile
[optf/has.git] / conductor / conductor / tests / unit / data / plugins / inventory_provider / nsi_response.json
index f24409e..1a869ec 100644 (file)
     "resource-version": "1581418601616",
     "orchestration-status": "active",
     "relationship-list": {
-        "relationship": [
-            {
-                "related-to": "service-instance",
-                "relationship-label": "org.onap.relationships.inventory.ComposedOf",
-                "related-link": "/aai/v16/business/customers/customer/5GCustomer/service-subscriptions/service-subscription/5G/service-instances/service-instance/1a636c4d-5e76-427e-bfd6-241a947224b0",
-                "relationship-data": [
-                    {
-                        "relationship-key": "customer.global-customer-id",
-                        "relationship-value": "5GCustomer"
-                    },
-                    {
-                        "relationship-key": "service-subscription.service-type",
-                        "relationship-value": "5G"
-                    },
-                    {
-                        "relationship-key": "service-instance.service-instance-id",
-                        "relationship-value": "1a636c4d-5e76-427e-bfd6-241a947224b0"
-                    }
-                ],
-                "related-to-property": [
-                    {
-                        "property-key": "service-instance.service-instance-name",
-                        "property-value": "nssi_test_0211"
-                    }
-                ]
-            }
-        ]
-    },
-    "service-profiles": {
-        "service-profile": [
-            {
-                "profile-id": "89ad9f49-4201-4e3a-aac1-b0f27902c299",
-                "latency": 20,
-                "max-number-of-UEs": 10,
-                "coverage-area-TA-list": "[{\"province\":\"??\",\"city\":\"???\",\"county\":\"???\",\"street\":\"?????\"}]",
-                "ue-mobility-level": "stationary",
-                "resource-sharing-level": "0",
-                "exp-data-rate-UL": 100,
-                "exp-data-rate-DL": 100,
-                "activity-factor": 0,
-                "e2e-latency": 20,
-                "jitter": 1,
-                "survival-time": 0,
-                "exp-data-rate": 100,
-                "payload-size": 0,
-                "traffic-density": 0,
-                "conn-density": 100,
-                "resource-version": "1581418602494"
-            }
-        ]
-    }
-}
-  ]}
+    "relationship": [{
+      "related-to": "network-route",
+      "relationship-label": "org.onap.relationships.inventory.ComposedOf",
+      "related-link": "/aai/v21/network/network-routes/network-route/c0c55aa0-1a03-4851-8b1d-7a01bc5a1e76",
+      "relationship-data": [{
+        "relationship-key": "network-route.route-id",
+        "relationship-value": "c0c55aa0-1a03-4851-8b1d-7a01bc5a1e76"
+      }]
+    }, {
+      "related-to": "service-instance",
+      "relationship-label": "org.onap.relationships.inventory.ComposedOf",
+      "related-link": "/aai/v21/business/customers/customer/5GCustomer/service-subscriptions/service-subscription/5G/service-instances/service-instance/aa5f4179-e42a-47d4-8f83-9fa1766ad51a",
+      "relationship-data": [{
+        "relationship-key": "customer.global-customer-id",
+        "relationship-value": "5GCustomer"
+      }, {
+        "relationship-key": "service-subscription.service-type",
+        "relationship-value": "5G"
+      }, {
+        "relationship-key": "service-instance.service-instance-id",
+        "relationship-value": "aa5f4179-e42a-47d4-8f83-9fa1766ad51a"
+      }],
+      "related-to-property": [{
+        "property-key": "service-instance.service-instance-name",
+        "property-value": "ns_smf_nsst_0302_b49301c0-0964-420c-99ee-acc47a93da70"
+      }]
+    }, {
+      "related-to": "allotted-resource",
+      "relationship-label": "org.onap.relationships.inventory.Uses",
+      "related-link": "/aai/v21/business/customers/customer/5GCustomer/service-subscriptions/service-subscription/5G/service-instances/service-instance/1c7046f2-a5a3-4d7f-9da8-388ee641a795/allotted-resources/allotted-resource/462e46c2-cd84-45e4-a6c1-77f4ef88328d",
+      "relationship-data": [{
+        "relationship-key": "customer.global-customer-id",
+        "relationship-value": "5GCustomer"
+      }, {
+        "relationship-key": "service-subscription.service-type",
+        "relationship-value": "5G"
+      }, {
+        "relationship-key": "service-instance.service-instance-id",
+        "relationship-value": "1c7046f2-a5a3-4d7f-9da8-388ee641a795"
+      }, {
+        "relationship-key": "allotted-resource.id",
+        "relationship-value": "462e46c2-cd84-45e4-a6c1-77f4ef88328d"
+      }],
+      "related-to-property": [{
+        "property-key": "allotted-resource.description"
+      }, {
+        "property-key": "allotted-resource.allotted-resource-name",
+        "property-value": "serviceProfile_ar_1812"
+      }]
+    }]
+  }
+}]}