blob: 17db590fb0e7c15edbe9796f8ec534f704328f91 [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.
grabinska8968662019-06-26 15:01:52 +02004Suite Setup Run keywords Create Headers AND Create sessions AND Set default PRH CBS config
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
grabinskc68c2ee2019-06-19 12:36:42 +02008Resource resources/prh_sessions.robot
Gary Wu9abb61c2018-09-27 10:38:50 -07009Resource resources/prh_library.robot
grabinska8968662019-06-26 15:01:52 +020010Resource resources/prh_config_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
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020027 ${TEST_CASES_DIR}/ves-event-with-missing-IP-addresses
28 ${TEST_CASES_DIR}/ves-event-with-only-IP-addresses
kurczews859154a2019-04-26 11:31:51 +020029 ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields
30 ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point
Gary Wu9abb61c2018-09-27 10:38:50 -070031
grabinsk3bee4892019-07-17 08:43:33 +020032Should not send PNF ready when DMaaP event has missing required field
kurczews859154a2019-04-26 11:31:51 +020033 [Documentation] PRH get from DMaaP event with missing required field
Gary Wu9abb61c2018-09-27 10:38:50 -070034 [Tags] PRH Invalid event
kurczews859154a2019-04-26 11:31:51 +020035 [Template] Verify event with missing required field is logged
36 ${TEST_CASES_DIR}/ves-event-missing-field
Gary Wu9abb61c2018-09-27 10:38:50 -070037
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020038Should not send PNF ready when DMaaP event is not JSON array
grabinsk3bee4892019-07-17 08:43:33 +020039 [Documentation] Event from DMaaP is not an array of JSON objects
kurczews859154a2019-04-26 11:31:51 +020040 [Tags] PRH Invalid event
grabinsk3bee4892019-07-17 08:43:33 +020041 Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-a-json-object
kurczews859154a2019-04-26 11:31:51 +020042
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020043Should not send PNF ready when AAI record doesn't exist
kurczews859154a2019-04-26 11:31:51 +020044 [Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI
Gary Wu9abb61c2018-09-27 10:38:50 -070045 [Tags] PRH Missing AAI record
kurczews859154a2019-04-26 11:31:51 +020046 Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry
Gary Wu9abb61c2018-09-27 10:38:50 -070047
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020048Should not send PNF ready when AAI is not responding
kurczews859154a2019-04-26 11:31:51 +020049 [Documentation] PRH get from DMaaP valid event but AAI is not responding
50 [Tags] PRH AAI not responding
51 Verify AAI not responding is logged ${TEST_CASES_DIR}/aai-not-responding
grabinsk0fc9eab2019-05-23 13:34:38 +020052
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020053Should send PNF ready when logical link exists and replace it in AAI
54 [Documentation] PRH gets event from DMaaP with an attachment point, PNF is related to a logical link in AAI
55 [Tags] PRH Attachment point
Joanna Jeremiczc4a9b7e2019-07-02 14:02:19 +020056 [Template] Verify PNF ready sent and old logical link replaced in AAI
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020057 ${TEST_CASES_DIR}/pnf-with-existing-logical-link
58 ${TEST_CASES_DIR}/pnf-with-different-logical-link
59
Marcin Migdalc47ac0f2019-06-10 14:36:50 +020060BBS case event - Re-registration
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020061 [Documentation] After registered PNF, PRH reads another one PRH event with registration event
Marcin Migdalc47ac0f2019-06-10 14:36:50 +020062 [Tags] PRH Valid event Re registraiton
63 [Template] Verify PNF re registration
micdzied9c7d8f02019-06-17 14:08:27 +020064 ${TEST_CASES_DIR}/re-registration
65
Joanna Jeremicz4a70dd32019-06-25 13:39:33 +020066Should send PNF ready when the associated service instance is non-Active
67 [Documentation] PNF has a non active service instance, should send PNF_READY event
68 [Tags] PRH Service instance non active
69 [Template] Verify PNF ready sent when service instance non active
70 ${TEST_CASES_DIR}/service-instance-non-active
71
micdzied9c7d8f02019-06-17 14:08:27 +020072PRH logging level change
grabinskad1421e2019-06-21 15:08:21 +020073 [Documentation] ad-hoc PRH logging level change using rest endpoint
micdzied9c7d8f02019-06-17 14:08:27 +020074 [Tags] PRH logging level
grabinskc68c2ee2019-06-19 12:36:42 +020075 Verify change logging level