Keong Lim | 3a5d947 | 2019-03-04 17:15:06 +1100 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation AAI CSIT-style regression tests for CCVPN - new schema elements introduced in Casablanca release for CCVPN use case |
Keong Lim | eff1eab | 2019-03-19 15:44:35 +1100 | [diff] [blame] | 3 | Test Timeout 20s |
Keong Lim | 3a5d947 | 2019-03-04 17:15:06 +1100 | [diff] [blame] | 4 | Resource ${EXECDIR}/robot/resources/aai/ccvpn-connectivities.robot |
Keong Lim | eff1eab | 2019-03-19 15:44:35 +1100 | [diff] [blame] | 5 | Resource ${EXECDIR}/robot/resources/aai/ccvpn-vpn-bindings.robot |
Keong Lim | 3a5d947 | 2019-03-04 17:15:06 +1100 | [diff] [blame] | 6 | |
| 7 | *** Variables *** |
| 8 | ${connectivity_id}= robot-connectivity-test-1 |
Keong Lim | eff1eab | 2019-03-19 15:44:35 +1100 | [diff] [blame] | 9 | ${vpn_id}= robot-vpn-test-1 |
| 10 | ${connectivity_class}= connectivity |
| 11 | ${vpn_class}= vpn-binding |
Keong Lim | 3a5d947 | 2019-03-04 17:15:06 +1100 | [diff] [blame] | 12 | |
| 13 | *** Test Cases *** |
| 14 | Connectivity test case |
Keong Lim | eff1eab | 2019-03-19 15:44:35 +1100 | [diff] [blame] | 15 | [Tags] aai csit ccvpn connectivity |
Keong Lim | 3a5d947 | 2019-03-04 17:15:06 +1100 | [diff] [blame] | 16 | Confirm API Not Implemented Connectivity ${connectivity_id} |
| 17 | Confirm No Connectivity ${connectivity_id} |
| 18 | Create Connectivity If Not Exists ${connectivity_id} |
| 19 | Get Connectivity ${connectivity_id} |
Keong Lim | eff1eab | 2019-03-19 15:44:35 +1100 | [diff] [blame] | 20 | [Teardown] Run Keywords Delete Connectivity If Exists ${connectivity_id} AND Confirm No Connectivity ${connectivity_id} |
| 21 | |
| 22 | VPN Binding test case |
| 23 | [Tags] aai csit ccvpn vpn-binding |
| 24 | Confirm No VPN Binding ${vpn_id} |
| 25 | Create VPN Binding If Not Exists ${vpn_id} |
| 26 | Get VPN Binding ${vpn_id} |
| 27 | [Teardown] Run Keywords Delete VPN Binding If Exists ${vpn_id} AND Confirm No VPN Binding ${vpn_id} |
| 28 | |
| 29 | Connectivity to VPN Binding Relationship test case |
| 30 | [Tags] aai csit ccvpn connectivity vpn-binding relationship |
Keong Lim | 3a5d947 | 2019-03-04 17:15:06 +1100 | [diff] [blame] | 31 | Confirm No Connectivity ${connectivity_id} |
Keong Lim | eff1eab | 2019-03-19 15:44:35 +1100 | [diff] [blame] | 32 | Confirm No VPN Binding ${vpn_id} |
| 33 | Create Connectivity If Not Exists ${connectivity_id} |
| 34 | Create VPN Binding If Not Exists ${vpn_id} |
| 35 | Get Connectivity ${connectivity_id} |
| 36 | Get VPN Binding ${vpn_id} |
| 37 | ${vpnbinding_url}= Get Valid VPN Binding URL ${vpn_id} |
| 38 | Add Connectivity Relationship ${connectivity_id} ${vpn_class} ${vpnbinding_url} |
| 39 | ${connectivity_rel}= Get Connectivity RelationshipList ${connectivity_id} |
| 40 | ${connectivity_rel_txt}= Catenate ${connectivity_rel} |
| 41 | Should Match Regexp ${connectivity_rel_txt} ${vpnbinding_url} |
| 42 | Should Match Regexp ${connectivity_rel_txt} ${vpn_class} |
| 43 | Get Connectivity With RelationshipList ${connectivity_id} |
| 44 | [Teardown] Run Keywords Delete Connectivity If Exists ${connectivity_id} AND Delete VPN Binding If Exists ${vpn_id} |
| 45 | |
| 46 | VPN Binding Relationship to Connectivity test case |
| 47 | [Tags] aai csit ccvpn connectivity vpn-binding relationship |
| 48 | Confirm No Connectivity ${connectivity_id} |
| 49 | Confirm No VPN Binding ${vpn_id} |
| 50 | Create Connectivity If Not Exists ${connectivity_id} |
| 51 | Create VPN Binding If Not Exists ${vpn_id} |
| 52 | Get Connectivity ${connectivity_id} |
| 53 | Get VPN Binding ${vpn_id} |
| 54 | ${connectivity_url}= Get Valid Connectivity URL ${connectivity_id} |
| 55 | Add VPN Binding Relationship ${vpn_id} ${connectivity_class} ${connectivity_url} |
| 56 | ${vpn_rel}= Get VPN Binding RelationshipList ${vpn_id} |
| 57 | ${vpn_rel_txt}= Catenate ${vpn_rel} |
| 58 | Should Match Regexp ${vpn_rel_txt} ${connectivity_url} |
| 59 | Should Match Regexp ${vpn_rel_txt} ${connectivity_class} |
| 60 | Get VPN Binding With RelationshipList ${vpn_id} |
| 61 | [Teardown] Run Keywords Delete Connectivity If Exists ${connectivity_id} AND Delete VPN Binding If Exists ${vpn_id} |
| 62 | |
| 63 | All Teardowns test case |
| 64 | [Tags] teardowns |
| 65 | Delete Connectivity If Exists ${connectivity_id} |
| 66 | Delete VPN Binding If Exists ${vpn_id} |
| 67 | Confirm No Connectivity ${connectivity_id} |
| 68 | Confirm No VPN Binding ${vpn_id} |
| 69 | |