Fixed CCVPN closed loop integration issue
[holmes/common.git] / holmes-actions / src / test / resources / ccvpn.data.json
index 6632cc2..5f47cd1 100644 (file)
 {
+  "resource-version": "1536316872154",
+  "link-type": "VL",
   "logic-link": {
-    "results": [
-      {
-        "p-interface": {
-          "interface-name": "{ifName}",
-          "network-ref": "some ref",
-          "transparent": "some value",
-          "operational-status ": "{status}",
-          "speed-value": "some speed",
-          "relationship-list": {
-            "relationship": [
+    "p-interface": {
+      "interface-name": "{ifName}",
+      "network-ref": "some ref",
+      "transparent": "some value",
+      "operational-status ": "{status}",
+      "speed-value": "some speed",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "logical-link",
+            "related-link": "url of logical-link",
+            "relationship-data": [
               {
-                "related-to": "logical-link",
-                "related-link": "url of logical-link",
-                "relationship-data": {
-                  "relationship-key": "logical-link.link-name",
-                  "relationship-value": "logic-link-1"
-                }
+                "relationship-key": "logical-link.link-name",
+                "relationship-value": "logic-link-1"
               }
             ]
           }
-        }
+        ]
       }
-    ]
+    }
   },
   "vpn-binding": {
-    "results": [
-      {
-        "p-interface": {
-          "interface-name": "{ifName}",
-          "network-ref": "some ref",
-          "transparent": "some value",
-          "operational-status ": "{status}",
-          "speed-value": "some speed",
-          "relationship-list": {
-            "relationship": [
+    "p-interface": {
+      "interface-name": "{ifName}",
+      "network-ref": "some ref",
+      "transparent": "some value",
+      "operational-status ": "{status}",
+      "speed-value": "some speed",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "vpn-binding",
+            "related-link": "url of vpn-binding",
+            "relationship-data": [
               {
-                "related-to": "vpn-binding",
-                "related-link": "url of vpn-binding",
-                "relationship-data": {
-                  "relationship-key": "vpn-binding.vpn-id",
-                  "relationship-value": "some id"
-                }
+                "relationship-key": "vpn-binding.vpn-id",
+                "relationship-value": "some id"
               }
             ]
           }
-        }
+        ]
       }
-    ]
+    }
   },
   "connectivity": {
-    "results": [
-      {
-        "vpn-binding": {
-          "vpn-id": "{vpnId}",
-          "vpn-name": "some name",
-          "access-provider-id": "provider id",
-          "access-client-id": "client id",
-          "access-topology-id": "topology id",
-          "src-access-node-id": "src node id",
-          "src-access-ltp-id": "src ltp id",
-          "dst-access-node-id": "dst node id",
-          "dst-access-ltp-id": "dst ltp id",
-          "operational-status": "some status",
-          "relationship-list": {
-            "relationship": [
+    "vpn-binding": {
+      "vpn-id": "{vpnId}",
+      "vpn-name": "some name",
+      "access-provider-id": "provider id",
+      "access-client-id": "client id",
+      "access-topology-id": "topology id",
+      "src-access-node-id": "src node id",
+      "src-access-ltp-id": "src ltp id",
+      "dst-access-node-id": "dst node id",
+      "dst-access-ltp-id": "dst ltp id",
+      "operational-status": "some status",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "connectivity",
+            "related-link": "url of connectivity",
+            "relationship-data": [
               {
-                "related-to": "connectivity",
-                "related-link": "url of connectivity",
-                "relationship-data": {
-                  "relationship-key": "connectivity. connectivity-id",
-                  "relationship-value": "some id"
-                }
+                "relationship-key": "connectivity.connectivity-id",
+                "relationship-value": "some id"
               }
             ]
           }
-        }
+        ]
       }
-    ]
+    }
   },
   "service-instance-by-connectivity": {
-    "results": [
-      {
-        "connectivity": {
-          "connectivity-id": "{connectivityId}",
-          "bandwidth-profile-name": "some profile",
-          "vpn-type": "some type",
-          "cir": "cir value",
-          "eir": "eir value",
-          "cbs": "cbs value",
-          "ebs": "ebs value",
-          "color-aware": "color value",
-          "coupling-flag": "flag value",
-          "etht-svc-name": "some name",
-          "access-provider-id": "provider id",
-          "access-client-id": "client id",
-          "access-topology-id": "topology id",
-          "access-node-id": "node id",
-          "access-ltp-id": "ltp id",
-          "connectivity-selflink": "some URL",
-          "cvlan ": "some tag",
-          "operational-status": "some status",
-          "relationship-list": {
-            "relationship": [
+    "connectivity": {
+      "connectivity-id": "{connectivityId}",
+      "bandwidth-profile-name": "some profile",
+      "vpn-type": "some type",
+      "cir": "cir value",
+      "eir": "eir value",
+      "cbs": "cbs value",
+      "ebs": "ebs value",
+      "color-aware": "color value",
+      "coupling-flag": "flag value",
+      "etht-svc-name": "some name",
+      "access-provider-id": "provider id",
+      "access-client-id": "client id",
+      "access-topology-id": "topology id",
+      "access-node-id": "node id",
+      "access-ltp-id": "ltp id",
+      "connectivity-selflink": "some URL",
+      "cvlan ": "some tag",
+      "operational-status": "some status",
+      "relationship-list": {
+        "relationship": [
+          {
+            "related-to": "service-instance",
+            "related-link": "/aai/v14/business/customers/customer/e151059a-d924-4629-845f-264db19e50b4/service-subscriptions/service-subscription/volte/service-instances/service-instance/service-1",
+            "relationship-data": [
               {
-                "related-to": "service-instance",
-                "related-link": "/aai/v14/business/customers/customer/{global-customer-id}/service-subscriptions/service-subscription/{service-type}/service-instances?service-instance-id=service-1",
-                "relationship-data": {
-                  "relationship-key": "service-instance.service-instance-id",
-                  "relationship-value": "some id"
-                }
+                "relationship-key": "service-instance.service-instance-id",
+                "relationship-value": "some id"
               }
             ]
           }
-        }
+        ]
       }
-    ]
+    }
   },
   "service-instances-by-service-type": {
-    "results": [
-      {
-        "service-subscription": {
-          "service-type": "{service-type}",
-          "temp-ub-sub-account-id": "some sub account",
-          "service-instances": {
-            "service-instance": [
-              {
-                "service-instance-id": "some id 1",
-                "service-instance-name": "some name 1",
-                "environment-context": "some context 1",
-                "workload-context": "some workload 1",
-                "relationship-list": {
-                  "relationship": [
-                  ]
-                }
-              },
-              {
-                "service-instance-id": "some id 2",
-                "service-instance-name": "some name 2",
-                "environment-context": "some context 2",
-                "workload-context": "some workload 2",
-                "relationship-list": {
-                  "relationship": [
-                  ]
-                }
-              },
-              {
-                "service-instance-id": "some id 3",
-                "service-instance-name": "some name 3",
-                "environment-context": "some context 3",
-                "workload-context": "some workload 3",
-                "relationship-list": {
-                  "relationship": [
-                  ]
-                }
-              }
-            ]
-          },
-          "relationship-list": {
-            "relationship": [
-            ]
-          }
+    "service-instance-id": "some id 1",
+    "service-instance-name": "some name 1",
+    "environment-context": "some context 1",
+    "workload-context": "some workload 1",
+    "relationship-list": {
+      "relationship": [
+      ]
+    }
+  },
+  "service-instance": {
+    "service-instance-id": "176d9eba-1662-4289-8396-0097b50fd485",
+    "service-type": "E2E Service",
+    "service-role": "E2E Service",
+    "model-invariant-id": "c22a9483-d2b6-49cc-b1f7-ef34c93572a1",
+    "model-version-id": "71d0e396-e246-4c23-aa57-6da2043d6209",
+    "input-parameters": "This is the service instance recreation input looked up by CL.",
+    "resource-version": "1528975017336",
+    "relationship-list": {
+      "relationship": [
+        {
+          "related-to": "pnf",
+          "related-link": "/aai/v11/network/pnfs/pnf/MME-0001",
+          "relationship-data": [
+            {
+              "relationship-key": "pnf.pnf-id",
+              "relationship-value": "176d9eba-1662-4289-8396-0097b50fd466"
+            }
+          ],
+          "related-to-property": [
+            {
+              "property-key": "pnf.pnf-name",
+              "property-value": "MME-0001"
+            }
+          ]
         }
-      }
-    ]
+      ]
+    }
   }
 }
\ No newline at end of file