wejs | 060bc42 | 2018-05-25 13:58:11 +0200 | [diff] [blame] | 1 | *** Settings *** |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 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. |
Mariusz Wagner | 3cbe547 | 2018-07-30 14:19:50 +0200 | [diff] [blame] | 4 | Suite Setup Run keywords Create header |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 5 | ... Create sessions |
Mariusz Wagner | cfd26b9 | 2018-06-13 14:30:27 +0200 | [diff] [blame] | 6 | Library resources/PrhLibrary.py |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 7 | Resource resources/prh_library.robot |
wejs | 060bc42 | 2018-05-25 13:58:11 +0200 | [diff] [blame] | 8 | |
| 9 | *** Variables *** |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 10 | ${DMAAP_SIMULATOR_URL} http://${DMAAP_SIMULATOR} |
| 11 | ${AAI_SIMULATOR_URL} http://${AAI_SIMULATOR} |
Mariusz Wagner | 4a6ece4 | 2018-06-05 15:54:27 +0200 | [diff] [blame] | 12 | ${PRH_URL} http://${PRH} |
Mariusz Wagner | 3479978 | 2018-09-06 12:48:32 +0200 | [diff] [blame^] | 13 | ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} {"event": {"commonEventHeader": {"sourceName":"NOK6061ZW1"}, "pnfRegistrationFields": {"oamV4IpAddress":"10.16.123.234", "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 14 | ${Not_json_format} "" |
wejs | 060bc42 | 2018-05-25 13:58:11 +0200 | [diff] [blame] | 15 | |
| 16 | *** Test Cases *** |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 17 | Valid DMaaP event can be converted to PNF_READY notification |
| 18 | [Documentation] PRH get valid event from DMaaP with required fields - PRH produce PNF_READY notification |
| 19 | [Tags] PRH Valid event |
| 20 | [Template] Valid event processing |
| 21 | ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} |
Mariusz Wagner | 3479978 | 2018-09-06 12:48:32 +0200 | [diff] [blame^] | 22 | {"event": {"commonEventHeader": {"sourceName":"NOK6061ZW2"}, "pnfRegistrationFields": {"oamV4IpAddress":"10.17.123.234", "oamV6IpAddress":""}}} |
| 23 | {"event": {"commonEventHeader": {"sourceName":"ERI6061ZW3"}, "pnfRegistrationFields": {"oamV4IpAddress":"", "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8b2e:0370:7334"}}} |
wejs | 060bc42 | 2018-05-25 13:58:11 +0200 | [diff] [blame] | 24 | |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 25 | Invalid DMaaP event cannot be converted to PNF_READY notification |
| 26 | [Documentation] PRH get invalid event from DMaaP with missing required fields - PRH does not produce PNF_READY notification |
| 27 | [Tags] PRH Invalid event |
| 28 | [Template] Invalid event processing |
Mariusz Wagner | 3479978 | 2018-09-06 12:48:32 +0200 | [diff] [blame^] | 29 | {"event": {"commonEventHeader": {"sourceName":"NOK6061ZW4"}, "pnfRegistrationFields": {"oamV4IpAddress":"", "oamV6IpAddress":""}}} |
| 30 | {"event": {"commonEventHeader": {"sourceName":""}, "pnfRegistrationFields": {"oamV4IpAddress":"10.18.123.234", "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8a2a:0370:7334"}}} |
| 31 | {"event": {"commonEventHeader": {"sourceName":""}, "pnfRegistrationFields": {"oamV4IpAddress":"10.17.163.234", "oamV6IpAddress":""}}} |
| 32 | {"event": {"commonEventHeader": {"sourceName":""}, "pnfRegistrationFields": {"oamV4IpAddress":"", "oamV6IpAddress":"2001:0db8:85a3:0000:0000:8b2f:0370:7334"}}} |
| 33 | {"event": {"commonEventHeader": {"sourceName":""}, "pnfRegistrationFields": {"oamV4IpAddress":"", "oamV6IpAddress":""}}} |
Mariusz Wagner | a2a6c98 | 2018-06-14 15:53:56 +0200 | [diff] [blame] | 34 | |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 35 | Get valid event from DMaaP and record in AAI does not exist |
| 36 | [Documentation] PRH get valid event from DMaaP with all required fields and in AAI record doesn't exist - PRH does not produce PNF_READY notification |
| 37 | [Tags] PRH Missing AAI record |
Mariusz Wagner | 60be36d | 2018-07-05 11:32:51 +0200 | [diff] [blame] | 38 | [Timeout] 30s |
Mariusz Wagner | 3cbe547 | 2018-07-30 14:19:50 +0200 | [diff] [blame] | 39 | Set PNF name in AAI wrong_aai_record |
| 40 | Set event in DMaaP ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} |
Mariusz Wagner | 3479978 | 2018-09-06 12:48:32 +0200 | [diff] [blame^] | 41 | Wait Until Keyword Succeeds 100x 300ms Check PRH log java.io.IOException: Connection closed prematurely |
| 42 | |
| 43 | Event in DMaaP is not JSON format |
| 44 | [Documentation] PRH get not JSON format event from DMaaP - PRH does not produce PNF_READY notification |
| 45 | [Tags] PRH |
| 46 | Set event in DMaaP ${Not_json_format} |
| 47 | Wait Until Keyword Succeeds 100x 300ms Check PRH log |java.lang.IllegalStateException: Not a JSON Array: |
Mariusz Wagner | 6d58832 | 2018-07-25 12:26:49 +0200 | [diff] [blame] | 48 | |
| 49 | Get valid event from DMaaP and AAI is not responding |
| 50 | [Documentation] PRH get valid event from DMaaP with all required fields and AAI is not responding - PRH does not produce PNF_READY notification |
| 51 | [Tags] PRH AAI |
| 52 | [Timeout] 180s |
| 53 | Stop AAI |
Mariusz Wagner | 3cbe547 | 2018-07-30 14:19:50 +0200 | [diff] [blame] | 54 | Set event in DMaaP ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} |
Mariusz Wagner | 3479978 | 2018-09-06 12:48:32 +0200 | [diff] [blame^] | 55 | Wait Until Keyword Succeeds 100x 300ms Check PRH log java.net.UnknownHostException: aai |