New BBS PRH testcases

Issue-ID: INT-1100
Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Change-Id: I19455f401beeecf28c94575b8115e6ce8249bf0a
diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/aai-entry.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/aai-entry.json
new file mode 100644
index 0000000..b074996
--- /dev/null
+++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/aai-entry.json
@@ -0,0 +1,38 @@
+{
+  "pnf-name": "NOK6061ZW9",
+  "pnf-name2": "example-pnf-name2-val-58071",
+  "pnf-name2-source": "example-pnf-name2-source-val-22408",
+  "pnf-id": "example-pnf-id-val-55834",
+  "equip-type": "example-equip-type-val-5497",
+  "equip-vendor": "example-equip-vendor-val-85730",
+  "equip-model": "example-equip-model-val-38526",
+  "management-option": "example-management-option-val-15776",
+  "ipaddress-v4-oam": "example-ipaddress-v4-oam-val-33556",
+  "sw-version": "example-sw-version-val-64239",
+  "in-maint": true,
+  "frame-id": "example-frame-id-val-76733",
+  "serial-number": "example-serial-number-val-79366",
+  "ipaddress-v4-loopback-0": "example-ipaddress-v4-loopback0-val-34781",
+  "ipaddress-v6-loopback-0": "example-ipaddress-v6-loopback0-val-29979",
+  "ipaddress-v4-aim": "example-ipaddress-v4-aim-val-53703",
+  "ipaddress-v6-aim": "example-ipaddress-v6-aim-val-93386",
+  "ipaddress-v6-oam": "example-ipaddress-v6-oam-val-92665",
+  "inv-status": "example-inv-status-val-8477",
+  "prov-status": "example-prov-status-val-68268",
+  "nf-role": "example-nf-role-val-68489",
+  "relationship-list": {
+    "relationship": [
+      {
+        "related-to": "logical-link",
+        "relationship-label": "org.onap.relationships.inventory.BridgedTo",
+        "related-link": "/aai/v14/network/logical-links/logical-link/some-link",
+        "relationship-data": [
+          {
+            "relationship-key": "logical-link.link-name",
+            "relationship-value": "some-link"
+          }
+        ]
+      }
+    ]
+  }
+}
\ No newline at end of file
diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-logical-link.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-logical-link.json
new file mode 100644
index 0000000..6dcfdfe
--- /dev/null
+++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-logical-link.json
@@ -0,0 +1,13 @@
+{
+  "link-name": "some-link",
+  "link-type": "attachment-point",
+  "relationship-list":
+    {
+      "relationship": [
+            {
+            "related-link": "/network/pnfs/pnf/NOK6061ZW9",
+            "relationship-data": []
+            }
+        ]
+    }
+}
diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-pnf-ready-event.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-pnf-ready-event.json
new file mode 100644
index 0000000..5a30bec
--- /dev/null
+++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/expected-pnf-ready-event.json
@@ -0,0 +1,8 @@
+[
+  {
+    "additionalFields": {
+      "attachment-point": "some-link"
+    },
+    "correlationId": "NOK6061ZW9"
+  }
+]
\ No newline at end of file
diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/logical-link.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/logical-link.json
new file mode 100644
index 0000000..72b3883
--- /dev/null
+++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/logical-link.json
@@ -0,0 +1,20 @@
+{
+  "link-name": "some-link",
+  "in-maint": false,
+  "link-type": "attachment-point",
+  "resource-version": "1561617000521",
+  "relationship-list": {
+    "relationship": [
+      {
+        "related-to": "pnf",
+        "related-link": "/aai/v11/network/pnfs/pnf/NOK6061ZW9",
+        "relationship-data": [
+          {
+            "relationship-key": "pnf.pnf-name",
+            "relationship-value": "NOK6061ZW9"
+          }
+        ]
+      }
+    ]
+  }
+}
\ No newline at end of file
diff --git a/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/ves-event.json b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/ves-event.json
new file mode 100644
index 0000000..fc21455
--- /dev/null
+++ b/tests/dcaegen2/prh-testcases/assets/pnf-with-existing-logical-link/ves-event.json
@@ -0,0 +1,40 @@
+{
+  "event": {
+    "commonEventHeader": {
+      "startEpochMicrosec": 1540212137393,
+      "sourceId": "val13",
+      "eventId": "registration_40212137",
+      "nfcNamingCode": "oam",
+      "internalHeaderFields": {
+        "collectorTimeStamp": "Mon, 10 22 2018 12:42:18 UTC"
+      },
+      "eventType": "pnfRegistration",
+      "priority": "Normal",
+      "version": "4.0.1",
+      "reportingEntityName": "NOK6061ZW9",
+      "sequence": 0,
+      "domain": "pnfRegistration",
+      "lastEpochMicrosec": 1540212137393,
+      "eventName": "pnfRegistration_Nokia_5gDu",
+      "vesEventListenerVersion": "7.0.1",
+      "sourceName": "NOK6061ZW9",
+      "nfNamingCode": "gNB"
+    },
+    "pnfRegistrationFields": {
+      "unitType": "val8",
+      "serialNumber": "6061ZW9",
+      "pnfRegistrationFieldsVersion": "2.0",
+      "manufactureDate": "1540212137393",
+      "modelNumber": "val6",
+      "lastServiceDate": "1540212137393",
+      "unitFamily": "BBU",
+      "vendorName": "Nokia",
+      "oamV4IpAddress": "val3",
+      "oamV6IpAddress": "val4",
+      "softwareVersion": "val7",
+      "additionalFields": {
+        "attachment-point": "some-link"
+      }
+    }
+  }
+}
\ No newline at end of file