diff options
author | kurczews <krzysztof.kurczewski@nokia.com> | 2019-04-18 14:56:41 +0200 |
---|---|---|
committer | kurczews <krzysztof.kurczewski@nokia.com> | 2019-04-26 13:49:12 +0200 |
commit | cd057060c750914f9a1ca3578edc9f0223c73bd9 (patch) | |
tree | 6f266528ec132cf5406fb3fe6a3610759d600a22 /tests/dcaegen2/prh-testcases/prh_tests2.robot | |
parent | 5f6b56855f325efb70212b3949d844f3a5c2856b (diff) |
PRH BBS tests - part 2
Issue-ID: INT-989
Change-Id: Ifa55723579d763e4bede7dbc373c7605dccb9b0e
Signed-off-by: kurczews <krzysztof.kurczewski@nokia.com>
Diffstat (limited to 'tests/dcaegen2/prh-testcases/prh_tests2.robot')
-rw-r--r-- | tests/dcaegen2/prh-testcases/prh_tests2.robot | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/dcaegen2/prh-testcases/prh_tests2.robot b/tests/dcaegen2/prh-testcases/prh_tests2.robot new file mode 100644 index 00000000..7f0531b8 --- /dev/null +++ b/tests/dcaegen2/prh-testcases/prh_tests2.robot @@ -0,0 +1,53 @@ +*** Settings *** +Documentation Integration tests for PRH. +... PRH receive events from DMaaP and produce or not PNF_READY notification depends on required fields in received event. +Suite Setup Run keywords Create Headers AND Create sessions AND Ensure Container Is Running prh AND Ensure Container Is Exited ssl_prh +Suite Teardown Ensure Container Is Running ssl_prh +Test Teardown Reset Simulators + +Library resources/PrhLibrary.py +Resource resources/prh_library2.robot +Resource ../../common.robot + +*** Variables *** +${TEST_CASES_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets + +${DMAAP_SIMULATOR_SETUP_URL} http://${DMAAP_SIMULATOR_SETUP} +${AAI_SIMULATOR_SETUP_URL} http://${AAI_SIMULATOR_SETUP} +${CONSUL_SETUP_URL} http://${CONSUL_SETUP} + +*** Test Cases *** +Simple BBS case event + [Documentation] PRH get from DMaaP valid event with valid attachment point + [Tags] PRH Valid event Attachment point + [Template] Verify PNF ready sent and logical link created + ${TEST_CASES_DIR}/ves-event-with-attachment-point + +Simple registration event + [Documentation] PRH get from DMaaP valid event without valid attachment point + [Tags] PRH Valid event + [Template] Verify PNF ready sent + ${TEST_CASES_DIR}/ves-event-without-additional-fields + ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields + ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point + +Should not sent PNF ready when DMaaP event is invalid + [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 sent PNF ready when DMaaP event is not JSON array + [Documentation] Event from DMaaP is not JSON array + [Tags] PRH Invalid event + Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-array + +Should not sent PNF ready when AAI record doesn't exist + [Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI + [Tags] PRH Missing AAI record + Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry + +Should not sent PNF ready when AAI is not responding + [Documentation] PRH get from DMaaP valid event but AAI is not responding + [Tags] PRH AAI not responding + Verify AAI not responding is logged ${TEST_CASES_DIR}/aai-not-responding |