aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2/prh-testcases/assets
diff options
context:
space:
mode:
authorgrabinsk <maciej.grabinski@nokia.com>2019-07-17 08:43:33 +0200
committergrabinsk <maciej.grabinski@nokia.com>2019-07-17 11:59:53 +0200
commit3bee489508eb04738575c55b562f239afc062964 (patch)
tree93f7d3e0e5cd030e665169bfa3d3fc5864644e76 /tests/dcaegen2/prh-testcases/assets
parent67a402ee7fdbfb31c2cd1c5ca4a519910ed4cd21 (diff)
Fix log checking in PRH so that only entries generated during test execution are taken into account.
- fixing "Should not send PNF ready when DMaaP event is not JSON array" test that was passing due to checking log entry generated by a previous test - improving logs generated by keyword waiting for log entry - changing 'find log entry' to 'wait for log entry' with explicit timeout setting - adjusting timeouts for waiting for log entries to appear (20s is enough when prh workflow execution is scheduled every 10s) Change-Id: I20c67dfce6e8d1809d24ddb3108a088b00165996 Issue-ID: DCAEGEN2-1544 Signed-off-by: grabinsk <maciej.grabinski@nokia.com>
Diffstat (limited to 'tests/dcaegen2/prh-testcases/assets')
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-not-a-json-object/invalid-ves-event.json1
-rw-r--r--tests/dcaegen2/prh-testcases/assets/ves-event-not-array/invalid-ves-event.json15
2 files changed, 1 insertions, 15 deletions
diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-not-a-json-object/invalid-ves-event.json b/tests/dcaegen2/prh-testcases/assets/ves-event-not-a-json-object/invalid-ves-event.json
new file mode 100644
index 00000000..cf378ebe
--- /dev/null
+++ b/tests/dcaegen2/prh-testcases/assets/ves-event-not-a-json-object/invalid-ves-event.json
@@ -0,0 +1 @@
+"notajsonobject"
diff --git a/tests/dcaegen2/prh-testcases/assets/ves-event-not-array/invalid-ves-event.json b/tests/dcaegen2/prh-testcases/assets/ves-event-not-array/invalid-ves-event.json
deleted file mode 100644
index cc6502fd..00000000
--- a/tests/dcaegen2/prh-testcases/assets/ves-event-not-array/invalid-ves-event.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "event": {
- "commonEventHeader": {
- "sourceName":"NOK6061ZW1"
- },
- "pnfRegistrationFields": {
- "oamV4IpAddress":"10.16.123.234",
- "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
- "serialNumber":"NOkkaaa123",
- "vendorName":"equipVendor",
- "modelNumber":"equipModel",
- "unitType":"equipType"
- }
- }
-}