From f59dd0d4cd399a1bdfb21e7cf2a6febafef09fb3 Mon Sep 17 00:00:00 2001
From: Rustam_Lotsmanenko <rustam_lotsmanenko@epam.com>
Date: Fri, 15 Dec 2023 18:14:10 +0200
Subject: [PATCH] add test resources

---
 .../src/test/resources/LegalTag.json          | 16 +++++++++
 .../src/test/resources/StorageRecord.json     | 33 +++++++++++++++++++
 2 files changed, 49 insertions(+)
 create mode 100644 testing/notification-test-baremetal/src/test/resources/LegalTag.json
 create mode 100644 testing/notification-test-baremetal/src/test/resources/StorageRecord.json

diff --git a/testing/notification-test-baremetal/src/test/resources/LegalTag.json b/testing/notification-test-baremetal/src/test/resources/LegalTag.json
new file mode 100644
index 000000000..e9629c72a
--- /dev/null
+++ b/testing/notification-test-baremetal/src/test/resources/LegalTag.json
@@ -0,0 +1,16 @@
+{
+  "name": "{{tagName}}",
+  "properties": {
+    "countryOfOrigin": [
+      "US"
+    ],
+    "contractId": "A1234",
+    "expirationDate": 2222222222222,
+    "originator": "Default",
+    "dataType": "Public Domain Data",
+    "securityClassification": "Public",
+    "personalData": "No Personal Data",
+    "exportClassification": "EAR99"
+  },
+  "description": "Test legal tag for notification"
+}
\ No newline at end of file
diff --git a/testing/notification-test-baremetal/src/test/resources/StorageRecord.json b/testing/notification-test-baremetal/src/test/resources/StorageRecord.json
new file mode 100644
index 000000000..c4a8e395f
--- /dev/null
+++ b/testing/notification-test-baremetal/src/test/resources/StorageRecord.json
@@ -0,0 +1,33 @@
+[
+  {
+    "id": "{{data-partition-id}}:dataset--ConnectedSource.Generic:notification-test-{{ids-suffix}}",
+    "kind": "{{data-partition-id}}:wks:dataset--ConnectedSource.Generic:1.0.0",
+    "data": {
+      "Name": "name",
+      "DatasetProperties": {
+        "ConnectedSourceDataJobId": "no-data",
+        "ConnectedSourceRegistryEntryId": "no-data",
+        "SourceDataPartitionId": "no-data",
+        "SourceRecordId": "no-data"
+      }
+    },
+    "namespace": "{{data-partition-id}}:osdu",
+    "legal": {
+      "legaltags": [
+        "{{legal-tag}}"
+      ],
+      "otherRelevantDataCountries": [
+        "US"
+      ],
+      "status": "compliant"
+    },
+    "acl": {
+      "viewers": [
+        "data.default.viewers@{{data-partition-id}}.{{group_id}}"
+      ],
+      "owners": [
+        "data.default.owners@{{data-partition-id}}.{{group_id}}"
+      ]
+    }
+  }
+]
\ No newline at end of file
-- 
GitLab