blob: 9334d63456cf695808f70ff1a78aff03d1c8b05a [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.
grabinsk0fc9eab2019-05-23 13:34:38 +02004Suite Setup Run keywords Create Headers AND Create sessions
pkarasc7abba82018-10-22 12:22:35 +02005Test Teardown Reset Simulators
grabinskdb4c4a52019-05-22 14:59:02 +02006Test Timeout 2 minutes
kurczews859154a2019-04-26 11:31:51 +02007
Gary Wu9abb61c2018-09-27 10:38:50 -07008Library resources/PrhLibrary.py
grabinskc68c2ee2019-06-19 12:36:42 +02009Resource resources/prh_sessions.robot
Gary Wu9abb61c2018-09-27 10:38:50 -070010Resource resources/prh_library.robot
grabinskc68c2ee2019-06-19 12:36:42 +020011Resource resources/prh_config_tests.robot
Gary Wu9abb61c2018-09-27 10:38:50 -070012
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}
micdzied9c7d8f02019-06-17 14:08:27 +020019${PRH_SETUP_URL} http://${PRH_SETUP}
20${TRACE_LOG_LEVEL_CONF} {"configuredLevel":"TRACE","effectiveLevel":"TRACE"}
21${WARN_LOG_LEVEL_CONF} {"configuredLevel":"WARN","effectiveLevel":"WARN"}
Marcin Migdalf969c742019-04-05 11:47:19 +020022
Gary Wu9abb61c2018-09-27 10:38:50 -070023*** Test Cases ***
Marcin Migdalc47ac0f2019-06-10 14:36:50 +020024BBS case event - attachment point
kurczews859154a2019-04-26 11:31:51 +020025 [Documentation] PRH get from DMaaP valid event with valid attachment point
26 [Tags] PRH Valid event Attachment point
27 [Template] Verify PNF ready sent and logical link created
28 ${TEST_CASES_DIR}/ves-event-with-attachment-point
29
30Simple registration event
31 [Documentation] PRH get from DMaaP valid event without valid attachment point
Gary Wu9abb61c2018-09-27 10:38:50 -070032 [Tags] PRH Valid event
grabinsk0fc9eab2019-05-23 13:34:38 +020033 [Template] Verify PNF ready sent
kurczews859154a2019-04-26 11:31:51 +020034 ${TEST_CASES_DIR}/ves-event-without-additional-fields
35 ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields
36 ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point
Gary Wu9abb61c2018-09-27 10:38:50 -070037
kurczews859154a2019-04-26 11:31:51 +020038Should not sent PNF ready when DMaaP event is invalid
39 [Documentation] PRH get from DMaaP event with missing required field
Gary Wu9abb61c2018-09-27 10:38:50 -070040 [Tags] PRH Invalid event
kurczews859154a2019-04-26 11:31:51 +020041 [Template] Verify event with missing required field is logged
42 ${TEST_CASES_DIR}/ves-event-missing-field
Gary Wu9abb61c2018-09-27 10:38:50 -070043
kurczews859154a2019-04-26 11:31:51 +020044Should not sent PNF ready when DMaaP event is not JSON array
45 [Documentation] Event from DMaaP is not JSON array
46 [Tags] PRH Invalid event
47 Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-array
48
49Should not sent PNF ready when AAI record doesn't exist
50 [Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI
Gary Wu9abb61c2018-09-27 10:38:50 -070051 [Tags] PRH Missing AAI record
kurczews859154a2019-04-26 11:31:51 +020052 Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry
Gary Wu9abb61c2018-09-27 10:38:50 -070053
kurczews859154a2019-04-26 11:31:51 +020054Should not sent PNF ready when AAI is not responding
55 [Documentation] PRH get from DMaaP valid event but AAI is not responding
56 [Tags] PRH AAI not responding
57 Verify AAI not responding is logged ${TEST_CASES_DIR}/aai-not-responding
grabinsk0fc9eab2019-05-23 13:34:38 +020058
Marcin Migdalc47ac0f2019-06-10 14:36:50 +020059BBS case event - Re-registration
60 [Documentation] After regitered PNF, PRH reads another one PRH event with registration event
61 [Tags] PRH Valid event Re registraiton
62 [Template] Verify PNF re registration
micdzied9c7d8f02019-06-17 14:08:27 +020063 ${TEST_CASES_DIR}/re-registration
64
65PRH logging level change
66 [Documentation] PRH logging level change from WARN to TRACE
67 [Tags] PRH logging level
grabinskc68c2ee2019-06-19 12:36:42 +020068 Verify change logging level
69
70CBS configuration forced refresh
71 [Documentation] It should be possible to force refresh PRH configuration from CBS
72 [Tags] PRH coniguration
73 Verify PRH configuration forced refresh