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 |
| 26 | Library ../../Framework/utils/utils.py |
| 27 | Resource ../../Framework/utils/utils.robot |
| 28 | Library ../../Framework/restApi.py |
| 29 | Resource ../../Framework/Subscriber.robot |
| 30 | Resource ../../Framework/ATTWorkFlowDriver.robot |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 31 | Resource ../../Framework/Kubernetes.robot |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 32 | Resource ../../Framework/ONU.robot |
| 33 | Resource ../../Framework/DHCP.robot |
| 34 | Variables ../../Properties/RestApiProperties.py |
| 35 | |
| 36 | *** Variables *** |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 37 | ${WHITELIST_PATHFILE} ${CURDIR}/data/SIABWhitelist.json |
| 38 | ${SUBSCRIBER_PATHFILE} ${CURDIR}/data/SIABSubscriber.json |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 39 | ${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/SIABOLTDevice.json |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 40 | ${export_kube_config} export KUBECONFIG=/home/%{USER}/.kube/config |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 41 | ${kube_node_ip} localhost |
| 42 | ${dst_host_ip} 172.18.0.10 |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 43 | ${local_user} %{USER} |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 44 | ${local_pass} ${None} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 45 | |
| 46 | *** Test Cases *** |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 47 | ONU in Correct Location |
| 48 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 49 | ... Configure whitelist with correct ONU location |
| 50 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 51 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 52 | [Tags] stable latest test1 |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 53 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 54 | 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] | 55 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 56 | 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] | 57 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 58 | CORD Put ${VOLT_SUBSCRIBER} {"status":"disabled"} ${subscriber_id} |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 59 | No Subscriber Service Chain |
Andy Bavier | 81de8b7 | 2018-11-20 10:15:06 -0700 | [diff] [blame] | 60 | 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] | 61 | Restart RG Pod |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 62 | CORD Put ${VOLT_SUBSCRIBER} {"status":"awaiting-auth"} ${subscriber_id} |
| 63 | # 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] | 64 | 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] | 65 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 66 | 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] | 67 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 68 | ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist |
| 69 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 70 | ... Configure whitelist with correct ONU location |
| 71 | ... Validate successful authentication/DHCP/E2E ping |
| 72 | ... Remove ONU from whitelist |
| 73 | ... Validate failed authentication/DHCP/E2E ping |
| 74 | ... Add ONU to whitelist |
| 75 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 76 | [Tags] stable latest test2 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 77 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 78 | 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] | 79 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 80 | 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] | 81 | Reset SIAB Environment |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 82 | Remove Whitelist |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 83 | 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] | 84 | 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] | 85 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 86 | 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] | 87 | No Subscriber Service Chain |
Kailash | a02472b | 2018-12-18 09:18:20 -0800 | [diff] [blame] | 88 | 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] | 89 | Reset SIAB Environment |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 90 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 91 | 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] | 92 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 93 | 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] | 94 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 95 | ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location |
| 96 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 97 | ... Configure whitelist with correct ONU location |
| 98 | ... Validate successful authentication/DHCP/E2E ping |
| 99 | ... Update whitelist with wrong ONU location |
| 100 | ... Validate failed authentication/DHCP/E2E ping |
| 101 | ... Update whitelist with correct ONU location |
| 102 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 103 | [Tags] stable latest test3 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 104 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 105 | 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] | 106 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 107 | 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] | 108 | Restart RG Pod |
| 109 | Update Whitelist with Wrong Location |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 110 | 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] | 111 | 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] | 112 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 113 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 114 | 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] | 115 | Restart RG Pod |
| 116 | Update Whitelist with Correct Location |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 117 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 118 | 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] | 119 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 120 | 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] | 121 | |
| 122 | ONU in Correct Location -> Remove Subscriber -> Create Subscriber |
| 123 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 124 | ... Configure whitelist with correct ONU location |
| 125 | ... Validate successful authentication/DHCP/E2E ping |
| 126 | ... Remove subscriber model |
| 127 | ... Validate failed authentication/DHCP/E2E ping |
| 128 | ... Recreate subscriber model |
| 129 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 130 | [Tags] stable latest test4 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 131 | Subscriber Ready to Authenticate |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 132 | 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] | 133 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 134 | 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] | 135 | Restart RG Pod |
| 136 | Remove Subscriber |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 137 | No Subscriber Service Chain |
Andy Bavier | 3d6ac1a | 2018-11-20 15:23:40 -0700 | [diff] [blame] | 138 | 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] | 139 | 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] | 140 | Restart RG Pod |
| 141 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 142 | 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] | 143 | 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] | 144 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 145 | 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] | 146 | |
| 147 | ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber |
| 148 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 149 | ... Configure whitelist with correct ONU location and skip provisioning subscriber |
| 150 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 151 | ... Provision subscriber |
| 152 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 153 | [Tags] stable latest test5 |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 154 | Remove Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 155 | 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] | 156 | 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] | 157 | 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] | 158 | 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] | 159 | 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] | 160 | Restart RG Pod |
| 161 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 162 | 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] | 163 | 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] | 164 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 165 | 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] | 166 | |
| 167 | ONU in Correct Location (Skip Authentication) |
| 168 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 169 | ... Configure whitelist with correct ONU location and skip RG authentication |
| 170 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 171 | [Tags] stable latest test6 |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 172 | Subscriber Ready to Authenticate |
| 173 | No Subscriber Service Chain |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 174 | 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] | 175 | |
| 176 | ONU not in Whitelist |
| 177 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 178 | ... Skip whitelist configuration for ONU |
| 179 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 180 | [Tags] stable latest test7 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 181 | [Setup] Simple Setup |
Kailash Khalasi | 8b3523c | 2018-11-08 15:31:49 -0800 | [diff] [blame] | 182 | 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] | 183 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 184 | 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] | 185 | 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] | 186 | 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] | 187 | 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] | 188 | 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] | 189 | 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] | 190 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 191 | 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] | 192 | |
| 193 | ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber |
| 194 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 195 | ... Skip whitelist configuration for ONU and subscriber provisioning |
| 196 | ... Validate successful authentication but failed DHCP/E2E ping |
| 197 | ... Configure whitelist with correct ONU location |
| 198 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 199 | ... Provision subscriber |
| 200 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | c747751 | 2018-11-08 07:55:01 -0800 | [diff] [blame] | 201 | [Tags] latest test8 stable |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 202 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 203 | 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] | 204 | 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] | 205 | Validate Authentication False eth0 wpa_supplicant.conf ${kube_node_ip} ${local_user} ${local_pass} K8S ${RG_CONTAINER} |
| 206 | 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] | 207 | Restart RG Pod |
| 208 | Create Whitelist |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 209 | 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] | 210 | 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] | 211 | 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] | 212 | 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] | 213 | 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] | 214 | Restart RG Pod |
| 215 | Create Subscriber |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 216 | 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] | 217 | 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] | 218 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 219 | 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] | 220 | |
| 221 | ONU in Wrong Location |
| 222 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 223 | ... Configure whitelist with wrong ONU location |
| 224 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | c747751 | 2018-11-08 07:55:01 -0800 | [diff] [blame] | 225 | [Tags] latest test9 stable |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 226 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 227 | 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] | 228 | 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] | 229 | 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] | 230 | 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] | 231 | 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] | 232 | 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] | 233 | No Subscriber Service Chain |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 234 | 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] | 235 | |
| 236 | ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber |
| 237 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 238 | ... Configure whitelist with wrong ONU location and skip subscriber provisioning |
| 239 | ... Validate failed authentication/DHCP/E2E ping |
| 240 | ... Configure whitelist with correct ONU location |
| 241 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
| 242 | ... Provision subscriber |
| 243 | ... Validate successful authentication/DHCP/E2E ping |
Kailash | b49e845 | 2018-12-18 08:29:11 -0800 | [diff] [blame] | 244 | [Tags] stable latest test10 |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 245 | [Setup] Simple Setup |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 246 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 247 | Update Whitelist with Wrong Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 248 | 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] | 249 | 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] | 250 | 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] | 251 | 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] | 252 | 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] | 253 | Restart RG Pod |
| 254 | Update Whitelist with Correct Location |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 255 | 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] | 256 | 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] | 257 | 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] | 258 | 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] | 259 | 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] | 260 | Restart RG Pod |
| 261 | Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 262 | 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] | 263 | 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] | 264 | Subscriber Service Chain Created |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 265 | 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] | 266 | |
| 267 | *** Keywords *** |
| 268 | Setup |
| 269 | ${auth} = Create List ${XOS_USER} ${XOS_PASSWD} |
| 270 | ${HEADERS} Create Dictionary Content-Type=application/json |
| 271 | Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS} |
| 272 | ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE} |
| 273 | ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE} |
| 274 | ${AttWhiteListList}= utils.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 275 | Set Suite Variable ${AttWhiteListList} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 276 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 277 | ${AttWhiteListDict}= utils.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 278 | ${onu_device}= Get From Dictionary ${AttWhiteListDict} serial_number |
| 279 | Log ${onu_device} |
| 280 | Set Global Variable ${onu_device} |
| 281 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 282 | Set Global Variable ${onu_location} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 283 | ${SubscriberList}= utils.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 284 | Set Global Variable ${SubscriberList} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 285 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 286 | ${s_tag}= utils.getFieldValueFromDict ${SubscriberDict} s_tag |
| 287 | ${c_tag}= utils.getFieldValueFromDict ${SubscriberDict} c_tag |
| 288 | ${VoltDeviceList}= utils.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 289 | ${VoltDeviceDict}= utils.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 290 | Set Global Variable ${VoltDeviceList} |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 291 | Set Global Variable ${VoltDeviceDict} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 292 | Set Suite Variable ${s_tag} |
| 293 | Set Suite Variable ${c_tag} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 294 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 295 | Set Suite Variable ${whitelist_id} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 296 | ${att_si_id}= Retrieve ATT Service Instance ID ${onu_device} |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 297 | Set Suite Variable ${att_si_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 298 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 299 | Set Suite Variable ${RG_CONTAINER} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 300 | ## Validate ATT Workflow SI |
Kailash Khalasi | f76cad9 | 2018-10-19 12:33:21 -0700 | [diff] [blame] | 301 | 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] | 302 | @{container_list}= Create List |
Kailash Khalasi | dd9136a | 2018-10-18 11:16:18 -0700 | [diff] [blame] | 303 | Append To List ${container_list} att-workflow-att-workflow-driver |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 304 | Append To List ${container_list} seba-services-fabric-crossconnect |
| 305 | Append To List ${container_list} seba-services-rcord |
| 306 | Append To List ${container_list} seba-services-volt |
Kailash Khalasi | 3070402 | 2018-10-18 09:13:26 -0700 | [diff] [blame] | 307 | Append To List ${container_list} xos-core |
| 308 | Append To List ${container_list} vcore |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 309 | Set Suite Variable ${container_list} |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 310 | Setup SSH Keys to Localhost |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 311 | ${datetime}= Get Current Datetime On Kubernetes Node localhost ${local_user} ${local_pass} |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 312 | Set Suite Variable ${datetime} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 313 | |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 314 | Teardown |
| 315 | Setup Test |
| 316 | Delete All Sessions |
| 317 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 318 | Setup Test |
Kailash Khalasi | cf006cb | 2018-10-19 08:36:51 -0700 | [diff] [blame] | 319 | ${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] | 320 | Set Suite Variable ${datetime} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 321 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 322 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
| 323 | Subscriber Ready to Authenticate |
| 324 | |
| 325 | Subscriber Ready to Authenticate |
| 326 | 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] | 327 | 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] | 328 | 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] | 329 | |
| 330 | Subscriber Service Chain Created |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 331 | 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] | 332 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 333 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} True |
| 334 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} True |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 335 | Wait Until Keyword Succeeds 60s 2s Validate XConnect in ONOS True |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 336 | |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 337 | No Subscriber Service Chain |
| 338 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 339 | Wait Until Keyword Succeeds 60s 2s Validate Fabric CrossConnect SI ${s_tag} False |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 340 | Wait Until Keyword Succeeds 60s 2s Validate XConnect in ONOS False |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 341 | |
Kailash Khalasi | a2e6aa8 | 2018-10-23 14:56:02 -0700 | [diff] [blame] | 342 | Simple Setup |
| 343 | ${datetime}= Get Current Datetime On Kubernetes Node ${kube_node_ip} ${local_user} ${local_pass} |
| 344 | Set Suite Variable ${datetime} |
| 345 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 346 | Set Suite Variable ${RG_CONTAINER} |
| 347 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 348 | Test Cleanup |
| 349 | [Documentation] Restore back to initial state per each test |
| 350 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
Kailash Khalasi | f56a4fb | 2018-10-23 12:38:16 -0700 | [diff] [blame] | 351 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 352 | Wait Until Keyword Succeeds 30s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 353 | 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] | 354 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 355 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Service Chain ${onu_device} False |
| 356 | 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] | 357 | Restart RG Pod |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 358 | |
Kailash Khalasi | 0e515fe | 2018-10-02 12:13:47 -0700 | [diff] [blame] | 359 | Restart RG Pod |
| 360 | Run kubectl -n voltha delete pod ${RG_CONTAINER} |
| 361 | ${RG_CONTAINER}= Wait Until Keyword Succeeds 60s 1s Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 362 | Set Suite Variable ${RG_CONTAINER} |
| 363 | 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] | 364 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 365 | Create Whitelist |
| 366 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 367 | ${resp}= CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
| 368 | ${whitelist_id}= Get Json Value ${resp.content} /id |
| 369 | Set Global Variable ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 370 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 371 | Remove Whitelist |
| 372 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 373 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 374 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 375 | Create Subscriber |
| 376 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 377 | CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
Kailash Khalasi | 16d95c1 | 2018-09-21 14:17:28 -0700 | [diff] [blame] | 378 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 379 | Remove Subscriber |
| 380 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 381 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 382 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 383 | Create VOLT |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 384 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |
Kailash Khalasi | b5975cf | 2018-10-01 12:57:44 -0700 | [diff] [blame] | 385 | |
Kailash Khalasi | bf1478b | 2018-10-17 11:58:58 -0700 | [diff] [blame] | 386 | Update Whitelist with Wrong Location |
| 387 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 388 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id} |
| 389 | |
| 390 | Update Whitelist with Correct Location |
| 391 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 392 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 393 | |
| 394 | Reset SIAB Environment |
| 395 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
| 396 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 397 | Wait Until Keyword Succeeds 30s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 398 | 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] | 399 | Restart RG Pod |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 400 | Wait Until Keyword Succeeds 60s 2s Create Subscriber |
Andy Bavier | df70bba | 2019-01-24 07:06:38 -0700 | [diff] [blame] | 401 | Wait Until Keyword Succeeds 60s 2s Create Whitelist |
Andy Bavier | 3075b9b | 2019-01-31 13:45:35 -0700 | [diff] [blame] | 402 | Subscriber Ready to Authenticate |
Kailash | 821de7a | 2018-11-02 11:32:49 -0700 | [diff] [blame] | 403 | ${RG_CONTAINER}= Run kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1 |
| 404 | Set Suite Variable ${RG_CONTAINER} |
Kailash | fe18d61 | 2019-02-04 17:04:42 -0800 | [diff] [blame] | 405 | |
Kailash | 66b9a8d | 2019-02-07 10:18:55 -0800 | [diff] [blame] | 406 | Validate XConnect in ONOS |
| 407 | [Arguments] ${exists}=True |
| 408 | ${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 |
| 409 | Run Keyword If '${exists}' == 'True' Should Be Equal As Integers ${rc} 0 |
Kailash | abb029d | 2019-02-15 17:17:11 -0800 | [diff] [blame] | 410 | ... ELSE Should Be Equal As Integers ${rc} 1 |
| 411 | |
| 412 | Setup SSH Keys to Localhost |
| 413 | Run yes y 2>/dev/null | ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa |
| 414 | Run cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys |
| 415 | Run chmod og-wx ~/.ssh/authorized_keys |