blob: 4d4bf69470cbf405dfdc6c924bb48943f047ff2f [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** Settings ***
2Documentation Integration tests for PRH.
3... PRH receive events from DMaaP and produce or not PNF_READY notification depends on required fields in received event.
kurczews859154a2019-04-26 11:31:51 +02004Suite Setup Run keywords Create Headers AND Create sessions AND Ensure Container Is Running prh AND Ensure Container Is Exited ssl_prh
pkarasc7abba82018-10-22 12:22:35 +02005Suite Teardown Ensure Container Is Running ssl_prh
6Test Teardown Reset Simulators
grabinskdb4c4a52019-05-22 14:59:02 +02007Test Timeout 2 minutes
kurczews859154a2019-04-26 11:31:51 +02008
Gary Wu9abb61c2018-09-27 10:38:50 -07009Library resources/PrhLibrary.py
10Resource resources/prh_library.robot
11Resource ../../common.robot
12
13*** Variables ***
kurczews859154a2019-04-26 11:31:51 +020014${TEST_CASES_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets
15
pkarasc7abba82018-10-22 12:22:35 +020016${DMAAP_SIMULATOR_SETUP_URL} http://${DMAAP_SIMULATOR_SETUP}
pkaras55d36862018-10-17 15:08:34 +020017${AAI_SIMULATOR_SETUP_URL} http://${AAI_SIMULATOR_SETUP}
Marcin Migdalfba99a52019-04-15 14:36:45 +020018${CONSUL_SETUP_URL} http://${CONSUL_SETUP}
Marcin Migdalf969c742019-04-05 11:47:19 +020019
Gary Wu9abb61c2018-09-27 10:38:50 -070020*** Test Cases ***
kurczews859154a2019-04-26 11:31:51 +020021Simple BBS case event
22 [Documentation] PRH get from DMaaP valid event with valid attachment point
23 [Tags] PRH Valid event Attachment point
24 [Template] Verify PNF ready sent and logical link created
25 ${TEST_CASES_DIR}/ves-event-with-attachment-point
26
27Simple registration event
28 [Documentation] PRH get from DMaaP valid event without valid attachment point
Gary Wu9abb61c2018-09-27 10:38:50 -070029 [Tags] PRH Valid event
kurczews859154a2019-04-26 11:31:51 +020030 [Template] Verify PNF ready sent
31 ${TEST_CASES_DIR}/ves-event-without-additional-fields
32 ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields
33 ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point
Gary Wu9abb61c2018-09-27 10:38:50 -070034
kurczews859154a2019-04-26 11:31:51 +020035Should not sent PNF ready when DMaaP event is invalid
36 [Documentation] PRH get from DMaaP event with missing required field
Gary Wu9abb61c2018-09-27 10:38:50 -070037 [Tags] PRH Invalid event
kurczews859154a2019-04-26 11:31:51 +020038 [Template] Verify event with missing required field is logged
39 ${TEST_CASES_DIR}/ves-event-missing-field
Gary Wu9abb61c2018-09-27 10:38:50 -070040
kurczews859154a2019-04-26 11:31:51 +020041Should not sent PNF ready when DMaaP event is not JSON array
42 [Documentation] Event from DMaaP is not JSON array
43 [Tags] PRH Invalid event
44 Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-array
45
46Should not sent PNF ready when AAI record doesn't exist
47 [Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI
Gary Wu9abb61c2018-09-27 10:38:50 -070048 [Tags] PRH Missing AAI record
kurczews859154a2019-04-26 11:31:51 +020049 Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry
Gary Wu9abb61c2018-09-27 10:38:50 -070050
kurczews859154a2019-04-26 11:31:51 +020051Should not sent PNF ready when AAI is not responding
52 [Documentation] PRH get from DMaaP valid event but AAI is not responding
53 [Tags] PRH AAI not responding
54 Verify AAI not responding is logged ${TEST_CASES_DIR}/aai-not-responding
55