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>
diff --git a/tests/dcaegen2/prh-testcases/prh_tests.robot b/tests/dcaegen2/prh-testcases/prh_tests.robot
index 69ce27d..17db590 100644
--- a/tests/dcaegen2/prh-testcases/prh_tests.robot
+++ b/tests/dcaegen2/prh-testcases/prh_tests.robot
@@ -29,16 +29,16 @@
${TEST_CASES_DIR}/ves-event-with-empty-additional-fields
${TEST_CASES_DIR}/ves-event-with-empty-attachment-point
-Should not send PNF ready when DMaaP event is invalid
+Should not send PNF ready when DMaaP event has missing required field
[Documentation] PRH get from DMaaP event with missing required field
[Tags] PRH Invalid event
[Template] Verify event with missing required field is logged
${TEST_CASES_DIR}/ves-event-missing-field
Should not send PNF ready when DMaaP event is not JSON array
- [Documentation] Event from DMaaP is not JSON array
+ [Documentation] Event from DMaaP is not an array of JSON objects
[Tags] PRH Invalid event
- Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-array
+ Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-a-json-object
Should not send PNF ready when AAI record doesn't exist
[Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI