Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Integration tests for PRH. |
| 3 | ... PRH receive events from DMaaP and produce or not PNF_READY notification depends on required fields in received event. |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 4 | Suite Setup Run keywords Create Headers AND Create sessions AND Ensure Container Is Running prh AND Ensure Container Is Exited ssl_prh |
pkaras | c7abba8 | 2018-10-22 12:22:35 +0200 | [diff] [blame] | 5 | Suite Teardown Ensure Container Is Running ssl_prh |
| 6 | Test Teardown Reset Simulators |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 7 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 8 | Library resources/PrhLibrary.py |
| 9 | Resource resources/prh_library.robot |
| 10 | Resource ../../common.robot |
| 11 | |
| 12 | *** Variables *** |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 13 | ${TEST_CASES_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets |
| 14 | |
pkaras | c7abba8 | 2018-10-22 12:22:35 +0200 | [diff] [blame] | 15 | ${DMAAP_SIMULATOR_SETUP_URL} http://${DMAAP_SIMULATOR_SETUP} |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 16 | ${AAI_SIMULATOR_SETUP_URL} http://${AAI_SIMULATOR_SETUP} |
Marcin Migdal | fba99a5 | 2019-04-15 14:36:45 +0200 | [diff] [blame] | 17 | ${CONSUL_SETUP_URL} http://${CONSUL_SETUP} |
Marcin Migdal | f969c74 | 2019-04-05 11:47:19 +0200 | [diff] [blame] | 18 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 19 | *** Test Cases *** |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 20 | Simple BBS case event |
| 21 | [Documentation] PRH get from DMaaP valid event with valid attachment point |
| 22 | [Tags] PRH Valid event Attachment point |
| 23 | [Template] Verify PNF ready sent and logical link created |
| 24 | ${TEST_CASES_DIR}/ves-event-with-attachment-point |
| 25 | |
| 26 | Simple registration event |
| 27 | [Documentation] PRH get from DMaaP valid event without valid attachment point |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 28 | [Tags] PRH Valid event |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 29 | [Template] Verify PNF ready sent |
| 30 | ${TEST_CASES_DIR}/ves-event-without-additional-fields |
| 31 | ${TEST_CASES_DIR}/ves-event-with-empty-additional-fields |
| 32 | ${TEST_CASES_DIR}/ves-event-with-empty-attachment-point |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 33 | |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 34 | Should not sent PNF ready when DMaaP event is invalid |
| 35 | [Documentation] PRH get from DMaaP event with missing required field |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 36 | [Tags] PRH Invalid event |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 37 | [Template] Verify event with missing required field is logged |
| 38 | ${TEST_CASES_DIR}/ves-event-missing-field |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 39 | |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 40 | Should not sent PNF ready when DMaaP event is not JSON array |
| 41 | [Documentation] Event from DMaaP is not JSON array |
| 42 | [Tags] PRH Invalid event |
| 43 | Verify incorrect JSON event is logged ${TEST_CASES_DIR}/ves-event-not-array |
| 44 | |
| 45 | Should not sent PNF ready when AAI record doesn't exist |
| 46 | [Documentation] PRH get from DMaaP valid event but given PNF doesn't exists in AAI |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 47 | [Tags] PRH Missing AAI record |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 48 | Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 49 | |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame^] | 50 | Should not sent PNF ready when AAI is not responding |
| 51 | [Documentation] PRH get from DMaaP valid event but AAI is not responding |
| 52 | [Tags] PRH AAI not responding |
| 53 | Verify AAI not responding is logged ${TEST_CASES_DIR}/aai-not-responding |
| 54 | |