blob: 4e387b911a35efa1ff32b00fb0b7b33d89fa19a3 [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
Gary Wu9abb61c2018-09-27 10:38:50 -070011
12*** Variables ***
kurczews859154a2019-04-26 11:31:51 +020013${TEST_CASES_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets
14
Gary Wu9abb61c2018-09-27 10:38:50 -070015*** Test Cases ***
Marcin Migdalc47ac0f2019-06-10 14:36:50 +020016BBS case event - attachment point
kurczews859154a2019-04-26 11:31:51 +020017 [Documentation] PRH get from DMaaP valid event with valid attachment point
18 [Tags] PRH Valid event Attachment point
19 [Template] Verify PNF ready sent and logical link created
20 ${TEST_CASES_DIR}/ves-event-with-attachment-point
21
22Simple registration event
23 [Documentation] PRH get from DMaaP valid event without valid attachment point
Gary Wu9abb61c2018-09-27 10:38:50 -070024 [Tags] PRH Valid event
grabinsk0fc9eab2019-05-23 13:34:38 +020025 [Template] Verify PNF ready sent
kurczews859154a2019-04-26 11:31:51 +020026 ${TEST_CASES_DIR}/ves-event-without-additional-fields
27 ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields
28 ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point
Gary Wu9abb61c2018-09-27 10:38:50 -070029
kurczews859154a2019-04-26 11:31:51 +020030Should not sent PNF ready when DMaaP event is invalid
31 [Documentation] PRH get from DMaaP event with missing required field
Gary Wu9abb61c2018-09-27 10:38:50 -070032 [Tags] PRH Invalid event
kurczews859154a2019-04-26 11:31:51 +020033 [Template] Verify event with missing required field is logged
34 ${TEST_CASES_DIR}/ves-event-missing-field
Gary Wu9abb61c2018-09-27 10:38:50 -070035
kurczews859154a2019-04-26 11:31:51 +020036Should not sent PNF ready when DMaaP event is not JSON array
37 [Documentation] Event from DMaaP is not JSON array
38 [Tags] PRH Invalid event
39 Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-array
40
41Should not sent PNF ready when AAI record doesn't exist
42 [Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI
Gary Wu9abb61c2018-09-27 10:38:50 -070043 [Tags] PRH Missing AAI record
kurczews859154a2019-04-26 11:31:51 +020044 Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry
Gary Wu9abb61c2018-09-27 10:38:50 -070045
kurczews859154a2019-04-26 11:31:51 +020046Should not sent PNF ready when AAI is not responding
47 [Documentation] PRH get from DMaaP valid event but AAI is not responding
48 [Tags] PRH AAI not responding
49 Verify AAI not responding is logged ${TEST_CASES_DIR}/aai-not-responding
grabinsk0fc9eab2019-05-23 13:34:38 +020050
Marcin Migdalc47ac0f2019-06-10 14:36:50 +020051BBS case event - Re-registration
52 [Documentation] After regitered PNF, PRH reads another one PRH event with registration event
53 [Tags] PRH Valid event Re registraiton
54 [Template] Verify PNF re registration
micdzied9c7d8f02019-06-17 14:08:27 +020055 ${TEST_CASES_DIR}/re-registration
56
57PRH logging level change
grabinskad1421e2019-06-21 15:08:21 +020058 [Documentation] ad-hoc PRH logging level change using rest endpoint
micdzied9c7d8f02019-06-17 14:08:27 +020059 [Tags] PRH logging level
grabinskc68c2ee2019-06-19 12:36:42 +020060 Verify change logging level