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. |
| 4 | Suite Setup Run keywords Create headers |
| 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 | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 13 | ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"QTFCOC540002E", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 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} |
| 22 | {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"QTFCOC540002G", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":""}}} |
| 23 | {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"QTFCOC540002F", "pnfOamIpv4Address":"", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 24 | {"event": {"otherFields": {"pnfVendorName":"Ericsson", "pnfSerialNumber":"QTFCOC5400000", "pnfOamIpv4Address":"", "pnfOamIpv6Address":"2001:0db8:85b3:0000:0000:8a2e:0370:7334"}}} |
wejs | 060bc42 | 2018-05-25 13:58:11 +0200 | [diff] [blame] | 25 | |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 26 | Invalid DMaaP event cannot be converted to PNF_READY notification |
| 27 | [Documentation] PRH get invalid event from DMaaP with missing required fields - PRH does not produce PNF_READY notification |
| 28 | [Tags] PRH Invalid event |
| 29 | [Template] Invalid event processing |
| 30 | {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"QTFCOC540002E", "pnfOamIpv4Address":"", "pnfOamIpv6Address":""}}} |
| 31 | {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 32 | {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":""}}} |
| 33 | {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"", "pnfOamIpv4Address":"", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 34 | {"event": {"otherFields": {"pnfVendorName":"Nokia", "pnfSerialNumber":"", "pnfOamIpv4Address":"", "pnfOamIpv6Address":""}}} |
| 35 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"QTFCOC540002E", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 36 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"QTFCOC540002E", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":""}}} |
| 37 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"QTFCOC540002E", "pnfOamIpv4Address":"", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 38 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"QTFCOC540002E", "pnfOamIpv4Address":"", "pnfOamIpv6Address":""}}} |
| 39 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 40 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":""}}} |
| 41 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"", "pnfOamIpv4Address":"", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}} |
| 42 | {"event": {"otherFields": {"pnfVendorName":"", "pnfSerialNumber":"", "pnfOamIpv4Address":"", "pnfOamIpv6Address":""}}} |
| 43 | ${Not_json_format} |
Mariusz Wagner | a2a6c98 | 2018-06-14 15:53:56 +0200 | [diff] [blame] | 44 | |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 45 | Get valid event from DMaaP and record in AAI does not exist |
| 46 | [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 |
| 47 | [Tags] PRH Missing AAI record |
Mariusz Wagner | 60be36d | 2018-07-05 11:32:51 +0200 | [diff] [blame] | 48 | [Timeout] 30s |
Mariusz Wagner | 5f108de | 2018-07-12 08:36:13 +0200 | [diff] [blame] | 49 | Set pnf name in AAI wrong_aai_record |
| 50 | Set event in DMAAP ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} |
Mariusz Wagner | 6d58832 | 2018-07-25 12:26:49 +0200 | [diff] [blame] | 51 | Wait Until Keyword Succeeds 100x 300ms Check PRH log org.onap.dcaegen2.services.prh.exceptions.AAINotFoundException: Incorrect response code for continuation of tasks workflow |
| 52 | |
| 53 | Get valid event from DMaaP and AAI is not responding |
| 54 | [Documentation] PRH get valid event from DMaaP with all required fields and AAI is not responding - PRH does not produce PNF_READY notification |
| 55 | [Tags] PRH AAI |
| 56 | [Timeout] 180s |
| 57 | Stop AAI |
| 58 | Set event in DMAAP ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} |
| 59 | Wait Until Keyword Succeeds 100x 300ms Check PRH log java.net.NoRouteToHostException: Host is unreachable (Host unreachable) |