aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources
diff options
context:
space:
mode:
authorda490c <dave.adams@amdocs.com>2018-06-12 23:11:15 -0400
committerda490c <dave.adams@amdocs.com>2018-06-12 23:54:25 -0400
commit72da66902a3efaff3068ed2b3f4f7eb3bb5fe43f (patch)
tree9cfacefcb3543589bff774f9f40cc7fd548e8430 /src/test/resources
parent7753d7e90f5d91b143043a642e90dd30806da2ba (diff)
Fix Spike Event Processing with Common Format
Issue-ID: AAI-1215 Change-Id: Ic6b575e9194d00cc0da9229cdb532869357e37e5 Signed-off-by: da490c <dave.adams@amdocs.com>
Diffstat (limited to 'src/test/resources')
-rw-r--r--src/test/resources/generic-vnf-spike-event.json31
-rw-r--r--src/test/resources/optical-router-spike-event.json24
-rw-r--r--src/test/resources/pserver-missing-mandtory-field-spike-event.json28
-rw-r--r--src/test/resources/pserver-missing-primary-key-spike-event.json29
-rw-r--r--src/test/resources/pserver-spike-event.json30
-rw-r--r--src/test/resources/vserver-spike-event.json31
6 files changed, 173 insertions, 0 deletions
diff --git a/src/test/resources/generic-vnf-spike-event.json b/src/test/resources/generic-vnf-spike-event.json
new file mode 100644
index 0000000..b31bd04
--- /dev/null
+++ b/src/test/resources/generic-vnf-spike-event.json
@@ -0,0 +1,31 @@
+{
+ "header": {
+ "request-id": "c0a81fa7-5ef4-49cd-ab39-e42c53c9b9a4",
+ "timestamp": "20180309T121130Z",
+ "source-name": "SPIKE",
+ "event-type": "$EVENT_TYPE"
+ },
+ "body": {
+ "timestamp": 1514927928167,
+ "operation": "$OPERATION_TYPE",
+ "vertex": {
+ "properties": {
+ "vnf-id": "GenericVNFIdBpCNtULbEw9",
+ "in-maint": "false",
+ "heat-stack-id": "GenericVNFIdBpCNtULbEw1-12345-678-",
+ "prov-status": "junk",
+ "equipment-role": "ASBG",
+ "ipv4-oam-address": "5.6.7.8",
+ "vnf-name": "GenericVNFIdBpCNtULbEw9",
+ "vnf-type": "asbg",
+ "is-closed-loop-disabled": "false",
+ "orchestration-status": "Running",
+ "aai-node-type": "generic-vnf"
+ },
+ "key": "$ENTITY_KEY",
+ "type": "generic-vnf",
+ "schema-version": "v13"
+ }
+ },
+ "result": "SUCCESS"
+}
diff --git a/src/test/resources/optical-router-spike-event.json b/src/test/resources/optical-router-spike-event.json
new file mode 100644
index 0000000..05efe48
--- /dev/null
+++ b/src/test/resources/optical-router-spike-event.json
@@ -0,0 +1,24 @@
+{
+ "header": {
+ "request-id": "c0a81fa7-5ef4-49cd-ab39-e42c53c9b9a4",
+ "timestamp": "20180309T121130Z",
+ "source-name": "SPIKE",
+ "event-type": "$EVENT_TYPE"
+ },
+ "body": {
+ "timestamp": 1514927928167,
+ "operation": "$OPERATION_TYPE",
+ "vertex": {
+ "properties": {
+ "router-id": "optronicGatewayEast",
+ "brand": "optronix",
+ "version": "0.9.123b",
+ "bandwidth": "1Tbps"
+ },
+ "key": "$ENTITY_KEY",
+ "type": "optical-router",
+ "schema-version": "v21"
+ }
+ },
+ "result": "SUCCESS"
+}
diff --git a/src/test/resources/pserver-missing-mandtory-field-spike-event.json b/src/test/resources/pserver-missing-mandtory-field-spike-event.json
new file mode 100644
index 0000000..c58bf7d
--- /dev/null
+++ b/src/test/resources/pserver-missing-mandtory-field-spike-event.json
@@ -0,0 +1,28 @@
+{
+ "header": {
+ "request-id": "c0a81fa7-5ef4-49cd-ab39-e42c53c9b9a4",
+ "timestamp": "20180309T121130Z",
+ "source-name": "SPIKE",
+ "event-type": "$EVENT_TYPE"
+ },
+ "body": {
+ "timestamp": 1514927928167,
+ "operation": "$OPERATION_TYPE",
+ "vertex": {
+ "properties": {
+ "ipv4-oam-address": "1.2.3.4",
+ "resource-version": "1477013499",
+ "purpose": "my-purpose",
+ "fqdn": "myhost.onap.net",
+ "in-maint": false,
+ "equip-model": "DL380p-nd",
+ "equip-vendor": "HP",
+ "equip-type": "server",
+ "hostname": "myhost",
+ "ptnii-equip-name": "e-name"
+ },
+ "schema-version": "v13"
+ }
+ },
+ "result": "SUCCESS"
+}
diff --git a/src/test/resources/pserver-missing-primary-key-spike-event.json b/src/test/resources/pserver-missing-primary-key-spike-event.json
new file mode 100644
index 0000000..f1bd514
--- /dev/null
+++ b/src/test/resources/pserver-missing-primary-key-spike-event.json
@@ -0,0 +1,29 @@
+{
+ "header": {
+ "request-id": "c0a81fa7-5ef4-49cd-ab39-e42c53c9b9a4",
+ "timestamp": "20180309T121130Z",
+ "source-name": "SPIKE",
+ "event-type": "$EVENT_TYPE"
+ },
+ "body": {
+ "timestamp": 1514927928167,
+ "operation": "$OPERATION_TYPE",
+ "vertex": {
+ "properties": {
+ "ipv4-oam-address": "1.2.3.4",
+ "resource-version": "1477013499",
+ "purpose": "my-purpose",
+ "fqdn": "myhost.onap.net",
+ "in-maint": false,
+ "equip-model": "DL380p-nd",
+ "equip-vendor": "HP",
+ "equip-type": "server",
+ "ptnii-equip-name": "e-name"
+ },
+ "key": "$ENTITY_KEY",
+ "type": "pserver",
+ "schema-version": "v13"
+ }
+ },
+ "result": "SUCCESS"
+}
diff --git a/src/test/resources/pserver-spike-event.json b/src/test/resources/pserver-spike-event.json
new file mode 100644
index 0000000..f4b564c
--- /dev/null
+++ b/src/test/resources/pserver-spike-event.json
@@ -0,0 +1,30 @@
+{
+ "header": {
+ "request-id": "c0a81fa7-5ef4-49cd-ab39-e42c53c9b9a4",
+ "timestamp": "20180309T121130Z",
+ "source-name": "SPIKE",
+ "event-type": "$EVENT_TYPE"
+ },
+ "body": {
+ "timestamp": 1514927928167,
+ "operation": "$OPERATION_TYPE",
+ "vertex": {
+ "properties": {
+ "ipv4-oam-address": "1.2.3.4",
+ "resource-version": "1477013499",
+ "purpose": "my-purpose",
+ "fqdn": "myhost.onap.net",
+ "in-maint": false,
+ "equip-model": "DL380p-nd",
+ "equip-vendor": "HP",
+ "equip-type": "server",
+ "hostname": "myhost",
+ "ptnii-equip-name": "e-name"
+ },
+ "key": "$ENTITY_KEY",
+ "type": "pserver",
+ "schema-version": "v13"
+ }
+ },
+ "result": "SUCCESS"
+}
diff --git a/src/test/resources/vserver-spike-event.json b/src/test/resources/vserver-spike-event.json
new file mode 100644
index 0000000..de94d41
--- /dev/null
+++ b/src/test/resources/vserver-spike-event.json
@@ -0,0 +1,31 @@
+{
+ "header": {
+ "request-id": "c0a81fa7-5ef4-49cd-ab39-e42c53c9b9a4",
+ "timestamp": "20180309T121130Z",
+ "source-name": "SPIKE",
+ "event-type": "$EVENT_TYPE"
+ },
+ "body": {
+ "timestamp": 1514927928167,
+ "operation": "$OPERATION_TYPE",
+ "vertex": {
+ "properties": {
+ "vnf-id": "logServer1",
+ "in-maint": "false",
+ "heat-stack-id": "vserver-12345-678-",
+ "prov-status": "junk",
+ "equipment-role": "ASBG",
+ "ipv4-oam-address": "5.6.7.8",
+ "vnf-name": "GenericVNFIdBpCNtULbEw9",
+ "vnf-type": "asbg",
+ "is-closed-loop-disabled": "false",
+ "orchestration-status": "Running",
+ "aai-node-type": "generic-vnf"
+ },
+ "key": "$ENTITY_KEY",
+ "type": "vserver",
+ "schema-version": "v13"
+ }
+ },
+ "result": "SUCCESS"
+}