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. |
grabinsk | 0fc9eab | 2019-05-23 13:34:38 +0200 | [diff] [blame] | 4 | Suite Setup Run keywords Create Headers AND Create sessions |
pkaras | c7abba8 | 2018-10-22 12:22:35 +0200 | [diff] [blame] | 5 | Test Teardown Reset Simulators |
grabinsk | db4c4a5 | 2019-05-22 14:59:02 +0200 | [diff] [blame] | 6 | Test Timeout 2 minutes |
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 |
grabinsk | c68c2ee | 2019-06-19 12:36:42 +0200 | [diff] [blame^] | 9 | Resource resources/prh_sessions.robot |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 10 | Resource resources/prh_library.robot |
grabinsk | c68c2ee | 2019-06-19 12:36:42 +0200 | [diff] [blame^] | 11 | Resource resources/prh_config_tests.robot |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 12 | |
| 13 | *** Variables *** |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 14 | ${TEST_CASES_DIR} %{WORKSPACE}/tests/dcaegen2/prh-testcases/assets |
| 15 | |
pkaras | c7abba8 | 2018-10-22 12:22:35 +0200 | [diff] [blame] | 16 | ${DMAAP_SIMULATOR_SETUP_URL} http://${DMAAP_SIMULATOR_SETUP} |
pkaras | 55d3686 | 2018-10-17 15:08:34 +0200 | [diff] [blame] | 17 | ${AAI_SIMULATOR_SETUP_URL} http://${AAI_SIMULATOR_SETUP} |
Marcin Migdal | fba99a5 | 2019-04-15 14:36:45 +0200 | [diff] [blame] | 18 | ${CONSUL_SETUP_URL} http://${CONSUL_SETUP} |
micdzied | 9c7d8f0 | 2019-06-17 14:08:27 +0200 | [diff] [blame] | 19 | ${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 Migdal | f969c74 | 2019-04-05 11:47:19 +0200 | [diff] [blame] | 22 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 23 | *** Test Cases *** |
Marcin Migdal | c47ac0f | 2019-06-10 14:36:50 +0200 | [diff] [blame] | 24 | BBS case event - attachment point |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 25 | [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 | |
| 30 | Simple registration event |
| 31 | [Documentation] PRH get from DMaaP valid event without valid attachment point |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 32 | [Tags] PRH Valid event |
grabinsk | 0fc9eab | 2019-05-23 13:34:38 +0200 | [diff] [blame] | 33 | [Template] Verify PNF ready sent |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 34 | ${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 Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 37 | |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 38 | Should not sent PNF ready when DMaaP event is invalid |
| 39 | [Documentation] PRH get from DMaaP event with missing required field |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 40 | [Tags] PRH Invalid event |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 41 | [Template] Verify event with missing required field is logged |
| 42 | ${TEST_CASES_DIR}/ves-event-missing-field |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 43 | |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 44 | Should 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 | |
| 49 | Should 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 Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 51 | [Tags] PRH Missing AAI record |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 52 | Verify missing AAI record is logged ${TEST_CASES_DIR}/aai-missing-entry |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 53 | |
kurczews | 859154a | 2019-04-26 11:31:51 +0200 | [diff] [blame] | 54 | Should 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 |
grabinsk | 0fc9eab | 2019-05-23 13:34:38 +0200 | [diff] [blame] | 58 | |
Marcin Migdal | c47ac0f | 2019-06-10 14:36:50 +0200 | [diff] [blame] | 59 | BBS 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 |
micdzied | 9c7d8f0 | 2019-06-17 14:08:27 +0200 | [diff] [blame] | 63 | ${TEST_CASES_DIR}/re-registration |
| 64 | |
| 65 | PRH logging level change |
| 66 | [Documentation] PRH logging level change from WARN to TRACE |
| 67 | [Tags] PRH logging level |
grabinsk | c68c2ee | 2019-06-19 12:36:42 +0200 | [diff] [blame^] | 68 | Verify change logging level |
| 69 | |
| 70 | CBS 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 |