Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | *** Settings *** |
| 16 | Documentation Test various E2E conditions for seba-in-a-box |
| 17 | Suite Setup Setup |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 18 | Suite Teardown Teardown |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 19 | Test Setup Setup Test |
| 20 | Test Teardown Test Cleanup |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 21 | Library Collections |
| 22 | Library String |
| 23 | Library OperatingSystem |
| 24 | Library XML |
| 25 | Library RequestsLibrary |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 26 | Library CORDRobot |
| 27 | Library ImportResource resources=CORDRobot |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 28 | Variables ../../Properties/RestApiProperties.py |
| 29 | |
| 30 | *** Variables *** |
Andy Bavier | b6f5754 | 2019-03-11 14:41:03 -0700 | [diff] [blame] | 31 | ${VOLTHA_DIR} ~/cord/incubator/voltha |
Andy Bavier | 74d2e76 | 2019-04-29 15:29:03 -0700 | [diff] [blame] | 32 | ${WHITELIST_FILENAME} SIABWhitelist |
Kailash | 665f0c1 | 2019-04-29 14:20:56 -0700 | [diff] [blame] | 33 | ${SUBSCRIBER_FILENAME} SIABSubscriber |
| 34 | ${OLT_DEVICE_FILENAME} SIABOLTDevice |
| 35 | ${WHITELIST_PATHFILE} ${CURDIR}/data/${WHITELIST_FILENAME}.json |
| 36 | ${SUBSCRIBER_PATHFILE} ${CURDIR}/data/${SUBSCRIBER_FILENAME}.json |
| 37 | ${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/${OLT_DEVICE_FILENAME}.json |
Andy Bavier | 224ac98 | 2019-05-03 14:41:43 -0700 | [diff] [blame] | 38 | ${export_kube_config} export KUBECONFIG=%{HOME}/.kube/config |
Andy Bavier | 3810220 | 2019-09-19 14:13:27 -0700 | [diff] [blame] | 39 | ${kube_node_ip} 127.0.0.1 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 40 | ${dst_host_ip} 172.18.0.10 |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 41 | ${local_user} %{USER} |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 42 | ${local_pass} ${None} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 43 | |
| 44 | *** Test Cases *** |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 45 | ONU in Correct Location |
| 46 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 47 | ... Configure whitelist with correct ONU location |
| 48 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 49 | [Setup] None |
Andy Bavier | a09626a | 2019-05-22 14:13:39 -0700 | [diff] [blame] | 50 | [Tags] stable latest test1 multicast |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 51 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 52 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 53 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 54 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 55 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 56 | CORD Put ${VOLT_SUBSCRIBER} {"status":"disabled"} ${subscriber_id} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 57 | No Subscriber Service Chain |
Andy Bavier | 81de8b7 | 2018-11-20 10:15:06 -0700 | [diff] [blame] | 58 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 59 | Restart RG Pod |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 60 | CORD Put ${VOLT_SUBSCRIBER} {"status":"awaiting-auth"} ${subscriber_id} |
| 61 | # ATTWD SI auth_state is already "APPROVED" here from previous auth... not sure if this matters |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 62 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 63 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 64 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 65 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 66 | ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist |
| 67 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 68 | ... Configure whitelist with correct ONU location |
| 69 | ... Validate successful authentication/DHCP/E2E ping |
| 70 | ... Remove ONU from whitelist |
| 71 | ... Validate failed authentication/DHCP/E2E ping |
| 72 | ... Add ONU to whitelist |
| 73 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 74 | [Tags] stable latest test2 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 75 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 76 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 77 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 78 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 79 | Reset SIAB Environment |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 80 | Remove Whitelist |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 81 | Wait Until Keyword Succeeds 120s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 82 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU not found in whitelist |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 83 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 84 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 85 | No Subscriber Service Chain |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 86 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 87 | Reset SIAB Environment |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 88 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 89 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 90 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 91 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 92 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 93 | ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location |
| 94 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 95 | ... Configure whitelist with correct ONU location |
| 96 | ... Validate successful authentication/DHCP/E2E ping |
| 97 | ... Update whitelist with wrong ONU location |
| 98 | ... Validate failed authentication/DHCP/E2E ping |
| 99 | ... Update whitelist with correct ONU location |
| 100 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 101 | [Tags] stable latest test3 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 102 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 103 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 104 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 105 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 106 | Restart RG Pod |
| 107 | Update Whitelist with Wrong Location |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 108 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 109 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 110 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 111 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 112 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 113 | Restart RG Pod |
| 114 | Update Whitelist with Correct Location |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 115 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 116 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 117 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 118 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 119 | |
| 120 | ONU in Correct Location -> Remove Subscriber -> Create Subscriber |
| 121 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 122 | ... Configure whitelist with correct ONU location |
| 123 | ... Validate successful authentication/DHCP/E2E ping |
| 124 | ... Remove subscriber model |
| 125 | ... Validate failed authentication/DHCP/E2E ping |
| 126 | ... Recreate subscriber model |
| 127 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 128 | [Tags] stable latest test4 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 129 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 130 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 131 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 132 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 133 | Restart RG Pod |
| 134 | Remove Subscriber |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 135 | No Subscriber Service Chain |
Andy Bavier | 3d6ac1a | 2018-11-20 15:23:40 -0700 | [diff] [blame] | 136 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 137 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 138 | Restart RG Pod |
| 139 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 140 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 141 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 142 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 143 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 144 | |
| 145 | ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber |
| 146 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 147 | ... Configure whitelist with correct ONU location and skip provisioning subscriber |
| 148 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 149 | ... Provision subscriber |
| 150 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 151 | [Tags] stable latest test5 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 152 | Remove Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 153 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 154 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 155 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 156 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 157 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 158 | Restart RG Pod |
| 159 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 160 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 161 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 162 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 163 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 164 | |
| 165 | ONU in Correct Location (Skip Authentication) |
| 166 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 167 | ... Configure whitelist with correct ONU location and skip RG authentication |
| 168 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 169 | [Tags] stable latest test6 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 170 | Subscriber Ready to Authenticate |
| 171 | No Subscriber Service Chain |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 172 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 173 | |
| 174 | ONU not in Whitelist |
| 175 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 176 | ... Skip whitelist configuration for ONU |
| 177 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 178 | [Tags] stable latest test7 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 179 | [Setup] Simple Setup |
Kailash Khalasi | 8b3523c | 2018-11-08 15:31:49 -0800 | [diff] [blame] | 180 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 181 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 182 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 183 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash Khalasi | 8b3523c | 2018-11-08 15:31:49 -0800 | [diff] [blame] | 184 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} pre-provisioned |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 185 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 186 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU not found in whitelist |
Kailash Khalasi | 8b3523c | 2018-11-08 15:31:49 -0800 | [diff] [blame] | 187 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} pre-provisioned |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 188 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 189 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 190 | |
| 191 | ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber |
| 192 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 193 | ... Skip whitelist configuration for ONU and subscriber provisioning |
| 194 | ... Validate successful authentication but failed DHCP/E2E ping |
| 195 | ... Configure whitelist with correct ONU location |
| 196 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 197 | ... Provision subscriber |
| 198 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | c747751 | 2018-11-08 07:55:01 -0800 | [diff] [blame] | 199 | [Tags] latest test8 stable |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 200 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 201 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 202 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU not found in whitelist |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 203 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 204 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 205 | Restart RG Pod |
| 206 | Create Whitelist |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 207 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 208 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 209 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 210 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 211 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 212 | Restart RG Pod |
| 213 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 214 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 215 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 216 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 217 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 218 | |
| 219 | ONU in Wrong Location |
| 220 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 221 | ... Configure whitelist with wrong ONU location |
| 222 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | c747751 | 2018-11-08 07:55:01 -0800 | [diff] [blame] | 223 | [Tags] latest test9 stable |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 224 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 225 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 226 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 227 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 228 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 229 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 230 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 231 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 232 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 233 | |
| 234 | ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber |
| 235 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 236 | ... Configure whitelist with wrong ONU location and skip subscriber provisioning |
| 237 | ... Validate failed authentication/DHCP/E2E ping |
| 238 | ... Configure whitelist with correct ONU location |
| 239 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 240 | ... Provision subscriber |
| 241 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 242 | [Tags] stable latest test10 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 243 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 244 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 245 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 246 | Wait Until Keyword Succeeds 60s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 247 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} ONU activated in wrong location |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 248 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 249 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 250 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 251 | Restart RG Pod |
| 252 | Update Whitelist with Correct Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 253 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 254 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 255 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash | 4b39ecf | 2018-12-18 08:35:34 -0800 | [diff] [blame] | 256 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 257 | Validate DHCP and Ping False False eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 258 | Restart RG Pod |
| 259 | Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 260 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} pre-provisioned |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 261 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 262 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 263 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 264 | |
Andy Bavier | a09626a | 2019-05-22 14:13:39 -0700 | [diff] [blame] | 265 | Multicast Join Fails -> Authenticate, run DHCP -> Multicast Join Succeeds |
| 266 | [Documentation] Validates Multicast Connectivity and object states for the given scenario: |
| 267 | ... (Assumes multicast server upstream of BNG) |
| 268 | ... (Assumes pimd server running on BNG) |
| 269 | ... Configure whitelist with correct ONU location |
| 270 | ... Run multicast client on RG |
| 271 | ... Validate that no multicast traffic flowing yet |
| 272 | ... Validate successful authentication/DHCP/E2E ping |
| 273 | ... Run multicast client on RG |
| 274 | ... Validate that multicast traffic is flowing E2E |
| 275 | [Tags] latest test11 multicast |
| 276 | Subscriber Ready to Authenticate |
| 277 | Validate Multicast False eth0 ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 278 | Validate Authentication True eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 279 | Subscriber Service Chain Created |
| 280 | Validate DHCP and Ping True True eth0 ${s_tag} ${c_tag} ${dst_host_ip} ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 281 | Validate Multicast True eth0 ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 282 | |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 283 | *** Keywords *** |
| 284 | Setup |
| 285 | ${auth} = Create List ${XOS_USER} ${XOS_PASSWD} |
| 286 | ${HEADERS} Create Dictionary Content-Type=application/json |
| 287 | Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS} |
| 288 | ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE} |
| 289 | ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 290 | ${AttWhiteListList}= CORDRobot.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 291 | Set Suite Variable ${AttWhiteListList} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 292 | ${AttWhiteListDict}= CORDRobot.listToDict ${AttWhiteListList} 0 |
| 293 | ${AttWhiteListDict}= CORDRobot.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 294 | ${onu_device}= Get From Dictionary ${AttWhiteListDict} serial_number |
| 295 | Log ${onu_device} |
| 296 | Set Global Variable ${onu_device} |
| 297 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 298 | Set Global Variable ${onu_location} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 299 | ${SubscriberList}= CORDRobot.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 300 | Set Global Variable ${SubscriberList} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 301 | ${SubscriberDict}= CORDRobot.listToDict ${SubscriberList} 0 |
| 302 | ${s_tag}= CORDRobot.getFieldValueFromDict ${SubscriberDict} s_tag |
| 303 | ${c_tag}= CORDRobot.getFieldValueFromDict ${SubscriberDict} c_tag |
| 304 | ${VoltDeviceList}= CORDRobot.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
| 305 | ${VoltDeviceDict}= CORDRobot.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 306 | Set Global Variable ${VoltDeviceList} |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 307 | Set Global Variable ${VoltDeviceDict} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 308 | Set Suite Variable ${s_tag} |
| 309 | Set Suite Variable ${c_tag} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 310 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 311 | Set Suite Variable ${whitelist_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 312 | ${att_si_id}= Retrieve ATT Service Instance ID ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 313 | Set Suite Variable ${att_si_id} |
Andy Bavier | 8d74e8a | 2019-05-28 15:36:53 -0700 | [diff] [blame] | 314 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg[0-]"|cut -d' ' -f1 |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 315 | Set Suite Variable ${RG_CONTAINER} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 316 | ## Validate ATT Workflow SI |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 317 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 318 | @{container_list}= Create List |
Kailash Khalasi | dd9136a | 2018-10-18 11:16:18 -0700 | [diff] [blame] | 319 | Append To List ${container_list} att-workflow-att-workflow-driver |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 320 | Append To List ${container_list} seba-services-fabric-crossconnect |
| 321 | Append To List ${container_list} seba-services-rcord |
| 322 | Append To List ${container_list} seba-services-volt |
Kailash Khalasi | 3070402 | 2018-10-18 09:13:26 -0700 | [diff] [blame] | 323 | Append To List ${container_list} xos-core |
| 324 | Append To List ${container_list} vcore |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 325 | Set Suite Variable ${container_list} |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 326 | Setup SSH Keys to Localhost |
Andy Bavier | 3810220 | 2019-09-19 14:13:27 -0700 | [diff] [blame] | 327 | ${datetime}= Get Current Datetime On Kubernetes Node ${kube_node_ip} ${local_user} ${local_pass} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 328 | Set Suite Variable ${datetime} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 329 | |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 330 | Teardown |
| 331 | Setup Test |
| 332 | Delete All Sessions |
| 333 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 334 | Setup Test |
Kailash | 6e02a07 | 2019-04-04 09:33:43 -0700 | [diff] [blame] | 335 | ${datetime}= Run date +"%Y-%m-%dT%H:%M:%S.%NZ" |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 336 | Set Suite Variable ${datetime} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 337 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 338 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
| 339 | Subscriber Ready to Authenticate |
| 340 | |
| 341 | Subscriber Ready to Authenticate |
| 342 | Wait Until Keyword Succeeds 60s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 343 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} ONU has been validated - Awaiting Authentication |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 344 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 345 | |
| 346 | Subscriber Service Chain Created |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 347 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} ONU has been validated - Authentication succeeded |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 348 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 349 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 350 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 351 | Wait Until Keyword Succeeds 60s 2s Validate XConnect in ONOS True |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 352 | |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 353 | No Subscriber Service Chain |
| 354 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 355 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 356 | Wait Until Keyword Succeeds 60s 2s Validate XConnect in ONOS False |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 357 | |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 358 | Simple Setup |
Kailash | 6e02a07 | 2019-04-04 09:33:43 -0700 | [diff] [blame] | 359 | ${datetime}= Run date +"%Y-%m-%dT%H:%M:%S.%NZ" |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 360 | Set Suite Variable ${datetime} |
Andy Bavier | 8d74e8a | 2019-05-28 15:36:53 -0700 | [diff] [blame] | 361 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg[0-]"|cut -d' ' -f1 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 362 | Set Suite Variable ${RG_CONTAINER} |
| 363 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 364 | Test Cleanup |
| 365 | [Documentation] Restore back to initial state per each test |
Kailash | aca803e | 2019-03-05 15:04:31 -0800 | [diff] [blame] | 366 | Get VOLTHA Status |
Andy Bavier | 3810220 | 2019-09-19 14:13:27 -0700 | [diff] [blame] | 367 | Get ONOS Status ${kube_node_ip} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 368 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 369 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 370 | Wait Until Keyword Succeeds 30s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 371 | Wait Until Keyword Succeeds 30s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 372 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 373 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 374 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 375 | Restart RG Pod |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 376 | |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 377 | Restart RG Pod |
| 378 | Run kubectl -n voltha delete pod ${RG_CONTAINER} |
Andy Bavier | 8d74e8a | 2019-05-28 15:36:53 -0700 | [diff] [blame] | 379 | ${RG_CONTAINER}= Wait Until Keyword Succeeds 60s 1s Run kubectl -n voltha get pod|grep "^rg[0-]"|cut -d' ' -f1 |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 380 | Set Suite Variable ${RG_CONTAINER} |
| 381 | Run kubectl wait -n voltha pod/${RG_CONTAINER} --for condition=Ready --timeout=180s |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 382 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 383 | Create Whitelist |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 384 | ${AttWhiteListDict}= CORDRobot.listToDict ${AttWhiteListList} 0 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 385 | ${resp}= CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 386 | ${id}= Get From Dictionary ${resp.json()} id |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 387 | Set Global Variable ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 388 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 389 | Remove Whitelist |
| 390 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 391 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 392 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 393 | Create Subscriber |
Zack Williams | 821c502 | 2020-01-15 15:11:46 -0700 | [diff] [blame^] | 394 | ${SubscriberDict}= CORDRobot.listToDict ${SubscriberList} 0 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 395 | CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 396 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 397 | Remove Subscriber |
| 398 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 399 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 400 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 401 | Create VOLT |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 402 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 403 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 404 | Update Whitelist with Wrong Location |
| 405 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 406 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id} |
| 407 | |
| 408 | Update Whitelist with Correct Location |
| 409 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 410 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 411 | |
| 412 | Reset SIAB Environment |
| 413 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 414 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 415 | Wait Until Keyword Succeeds 30s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 416 | Wait Until Keyword Succeeds 30s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 417 | Restart RG Pod |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 418 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 419 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 420 | Subscriber Ready to Authenticate |
Andy Bavier | 8d74e8a | 2019-05-28 15:36:53 -0700 | [diff] [blame] | 421 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg[0-]"|cut -d' ' -f1 |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 422 | Set Suite Variable ${RG_CONTAINER} |
Kailash | fe18d61 | 2019-02-04 17:04:42 -0800 | [diff] [blame] | 423 | |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 424 | Validate XConnect in ONOS |
| 425 | [Arguments] ${exists}=True |
| 426 | ${rc}= Run And Return RC http -a karaf:karaf GET http://127.0.0.1:30120/onos/segmentrouting/xconnect|jq -r '.xconnects[].vlanId'|grep 222 |
| 427 | Run Keyword If '${exists}' == 'True' Should Be Equal As Integers ${rc} 0 |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 428 | ... ELSE Should Be Equal As Integers ${rc} 1 |
| 429 | |
| 430 | Setup SSH Keys to Localhost |
| 431 | Run yes y 2>/dev/null | ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa |
| 432 | Run cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys |
| 433 | Run chmod og-wx ~/.ssh/authorized_keys |