Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -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 | |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 15 | *** Settings *** |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 16 | Documentation Test various end-to-end scenarios with ATT workflow |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 17 | Suite Setup Setup Suite |
| 18 | Suite Teardown Teardown Suite |
| 19 | Test Setup Setup Test |
| 20 | Test Teardown Teardown Test |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 21 | Library Collections |
| 22 | Library String |
| 23 | Library OperatingSystem |
| 24 | Library XML |
| 25 | Library RequestsLibrary |
Suchitra Vemuri | 32fc2f2 | 2018-09-10 12:06:01 -0700 | [diff] [blame] | 26 | Library ../../Framework/utils/utils.py |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 27 | Resource ../../Framework/utils/utils.robot |
Suchitra Vemuri | 32fc2f2 | 2018-09-10 12:06:01 -0700 | [diff] [blame] | 28 | Library ../../Framework/restApi.py |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 29 | Resource ../../Framework/Subscriber.robot |
| 30 | Resource ../../Framework/ATTWorkFlowDriver.robot |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 31 | Resource ../../Framework/Kubernetes.robot |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 32 | Resource ../../Framework/ONU.robot |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 33 | Resource ../../Framework/OLT.robot |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 34 | Resource ../../Framework/DHCP.robot |
| 35 | Variables ../../Properties/RestApiProperties.py |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 36 | |
| 37 | *** Variables *** |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 38 | ${POD_NAME} flex-pod1-olt |
| 39 | ${KUBERNETES_CONFIGS_DIR} ~/pod-configs/kubernetes-configs |
| 40 | ${HELM_CHARTS_DIR} ~/helm-charts |
| 41 | ${WHITELIST_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTWhiteList.json |
| 42 | ${SUBSCRIBER_PATHFILE} ${CURDIR}/data/${POD_NAME}/ATTSubscriber.json |
| 43 | ${VOLT_DEVICE_PATHFILE} ${CURDIR}/data/${POD_NAME}/RealOLTDevice.json |
| 44 | ${KUBERNETES_CONF} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf |
| 45 | ${KUBERNETES_YAML} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.yml |
| 46 | ${VOLTHA_POD_NUM} 8 |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 47 | |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 48 | *** Test Cases *** |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 49 | ONU in Correct Location |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 50 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 51 | ... Configure whitelist with correct ONU location |
| 52 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 53 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 54 | [Tags] test1 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 55 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 56 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 57 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 58 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 59 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 60 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 61 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 62 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 63 | ONU in Correct Location -> Remove ONU from Whitelist -> Add ONU to Whitelist |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 64 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 65 | ... Configure whitelist with correct ONU location |
| 66 | ... Validate successful authentication/DHCP/E2E ping |
| 67 | ... Remove ONU from whitelist |
| 68 | ... Validate failed authentication/DHCP/E2E ping |
| 69 | ... Add ONU to whitelist |
| 70 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 71 | [Tags] test2 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 72 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 73 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 74 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 75 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 76 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 77 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 78 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 79 | Clean Up Linux |
| 80 | Remove Whitelist |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 81 | Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 82 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 83 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 84 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 85 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 86 | Clean Up Linux |
| 87 | Create Whitelist |
You Wang | 5fa194b | 2018-11-07 17:21:23 -0800 | [diff] [blame] | 88 | Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 89 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 90 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 91 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 92 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 93 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 94 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 95 | |
| 96 | ONU in Correct Location -> ONU in Wrong Location -> ONU in Correct Location |
| 97 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 98 | ... Configure whitelist with correct ONU location |
| 99 | ... Validate successful authentication/DHCP/E2E ping |
| 100 | ... Update whitelist with wrong ONU location |
| 101 | ... Validate failed authentication/DHCP/E2E ping |
| 102 | ... Update whitelist with correct ONU location |
| 103 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 104 | [Tags] test3 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 105 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 106 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 107 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 108 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 109 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 110 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 111 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 112 | Clean Up Linux |
| 113 | Update Whitelist with Wrong Location |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 114 | Wait Until Keyword Succeeds 60s 2s Validate ONU States UNKNOWN DISABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 115 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 116 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 117 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 118 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 119 | Clean Up Linux |
| 120 | Update Whitelist with Correct Location |
You Wang | 5fa194b | 2018-11-07 17:21:23 -0800 | [diff] [blame] | 121 | Wait Until Keyword Succeeds 120s 5s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 122 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 123 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 124 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 125 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 126 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 127 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 128 | |
| 129 | ONU in Correct Location -> Remove Subscriber -> Create Subscriber |
| 130 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 131 | ... Configure whitelist with correct ONU location |
| 132 | ... Validate successful authentication/DHCP/E2E ping |
| 133 | ... Remove subscriber model |
You Wang | 070302c | 2018-10-17 15:42:24 -0700 | [diff] [blame] | 134 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 135 | ... Recreate subscriber model |
| 136 | ... Validate successful authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 137 | [Tags] test4 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 138 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 139 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 140 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 141 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 142 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 143 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 144 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 145 | Clean Up Linux |
| 146 | Remove Subscriber |
You Wang | 070302c | 2018-10-17 15:42:24 -0700 | [diff] [blame] | 147 | Sleep 10s |
| 148 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 149 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 150 | Clean Up Linux |
| 151 | Create Subscriber |
You Wang | 070302c | 2018-10-17 15:42:24 -0700 | [diff] [blame] | 152 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 153 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 154 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 155 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 156 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 157 | |
| 158 | ONU in Correct Location (Skip Subscriber Provisioning) -> Provision Subscriber |
| 159 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 160 | ... Configure whitelist with correct ONU location and skip provisioning subscriber |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 161 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 162 | ... Provision subscriber |
| 163 | ... Validate successful authentication/DHCP/E2E ping |
| 164 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 165 | [Tags] test5 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 166 | Create Whitelist |
| 167 | Create VOLT |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 168 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 169 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 170 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 171 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 172 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 173 | Clean Up Linux |
| 174 | Create Subscriber |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 175 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 176 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 177 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 178 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 179 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 180 | |
| 181 | ONU in Correct Location (Skip Authentication) |
| 182 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 183 | ... Configure whitelist with correct ONU location and skip RG authentication |
| 184 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 185 | [Tags] test6 |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 186 | Wait Until Keyword Succeeds 300s 15s Validate ONU States ACTIVE ENABLED ${onu_device} |
| 187 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 188 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 189 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 190 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 191 | ONU not in Whitelist |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 192 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 193 | ... Skip whitelist configuration for ONU |
| 194 | ... Validate failed authentication/DHCP/E2E ping |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 195 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 196 | [Tags] test7 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 197 | Create Subscriber |
| 198 | Create VOLT |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 199 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 200 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 201 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 202 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 203 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 204 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 205 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 206 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 207 | ONU not in Whitelist (Skip Subscriber Provisioning) -> Add ONU to Whitelist -> Provision Subscriber |
| 208 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 209 | ... Skip whitelist configuration for ONU and subscriber provisioning |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 210 | ... Validate successful authentication but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 211 | ... Configure whitelist with correct ONU location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 212 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 213 | ... Provision subscriber |
| 214 | ... Validate successful authentication/DHCP/E2E ping |
| 215 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 216 | [Tags] test8 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 217 | Create VOLT |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 218 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 219 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 220 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 221 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 222 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 223 | Clean Up Linux |
| 224 | Create Whitelist |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 225 | Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 226 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 227 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 228 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 229 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 230 | Clean Up Linux |
| 231 | Create Subscriber |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 232 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 233 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 234 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 235 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 236 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 237 | |
| 238 | ONU in Wrong Location |
| 239 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 240 | ... Configure whitelist with wrong ONU location |
| 241 | ... Validate failed authentication/DHCP/E2E ping |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 242 | [Tags] test9 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 243 | Update Whitelist with Wrong Location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 244 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 245 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 246 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 247 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 248 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 249 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status awaiting-auth ${onu_device} |
| 250 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 251 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 252 | ONU in Wrong Location (Skip Subscriber Provisioning) -> ONU in Correct Location -> Provision Subscriber |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 253 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 254 | ... Configure whitelist with wrong ONU location and skip subscriber provisioning |
| 255 | ... Validate failed authentication/DHCP/E2E ping |
| 256 | ... Configure whitelist with correct ONU location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 257 | ... Validate successful authentication (expected with the ONF pod setup) but failed DHCP/E2E ping |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 258 | ... Provision subscriber |
| 259 | ... Validate successful authentication/DHCP/E2E ping |
| 260 | [Setup] None |
Kailash Khalasi | 92061c1 | 2018-10-29 11:52:39 -0700 | [diff] [blame] | 261 | [Tags] test10 |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 262 | Create VOLT |
| 263 | Create Whitelist |
| 264 | Update Whitelist with Wrong Location |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 265 | Wait Until Keyword Succeeds 300s 15s Validate ONU States UNKNOWN DISABLED ${onu_device} |
| 266 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 267 | Validate Authentication False ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 268 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI DISABLED AWAITING ${onu_device} |
| 269 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 270 | Clean Up Linux |
| 271 | Update Whitelist with Correct Location |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 272 | Wait Until Keyword Succeeds 60s 2s Validate ONU States ACTIVE ENABLED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 273 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED AWAITING ${onu_device} |
| 274 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 275 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 276 | Validate DHCP and Ping False False ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 277 | Clean Up Linux |
| 278 | Create Subscriber |
You Wang | a452499 | 2018-10-17 16:38:33 -0700 | [diff] [blame] | 279 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status pre-provisioned ${onu_device} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 280 | Validate Authentication True ${src_iface} wpa_supplicant.conf ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 281 | Wait Until Keyword Succeeds 60s 2s Validate ATT Workflow Driver SI ENABLED APPROVED ${onu_device} |
| 282 | Wait Until Keyword Succeeds 60s 2s Validate Subscriber Status enabled ${onu_device} |
| 283 | Validate DHCP and Ping True True ${src_iface} ${s_tag} ${c_tag} ${dst_dp_ip} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} ${dst_dp_iface} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 284 | |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 285 | *** Keywords *** |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 286 | Setup Suite |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 287 | ${auth} = Create List ${XOS_USER} ${XOS_PASSWD} |
| 288 | ${HEADERS} Create Dictionary Content-Type=application/json |
| 289 | Create Session ${server_ip} http://${server_ip}:${server_port} auth=${AUTH} headers=${HEADERS} |
| 290 | ${att_workflow_service_id}= Get Service Owner Id ${ATT_SERVICE} |
| 291 | ${volt_service_id}= Get Service Owner Id ${VOLT_SERVICE} |
Kailash Khalasi | 30a6a39 | 2018-09-10 14:32:39 -0700 | [diff] [blame] | 292 | ${AttWhiteListList}= utils.jsonToList ${WHITELIST_PATHFILE} AttWhiteListInfo |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 293 | Set Suite Variable ${AttWhiteListList} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 294 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 295 | ${AttWhiteListDict}= utils.setFieldValueInDict ${AttWhiteListDict} owner_id ${att_workflow_service_id} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 296 | ${onu_device}= Get From Dictionary ${AttWhiteListDict} serial_number |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 297 | Set Global Variable ${onu_device} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 298 | ${onu_location}= Get From Dictionary ${AttWhiteListDict} pon_port_id |
| 299 | Set Global Variable ${onu_location} |
Kailash Khalasi | 30a6a39 | 2018-09-10 14:32:39 -0700 | [diff] [blame] | 300 | ${SubscriberList}= utils.jsonToList ${SUBSCRIBER_PATHFILE} SubscriberInfo |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 301 | Set Global Variable ${SubscriberList} |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 302 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 303 | ${s_tag}= utils.getFieldValueFromDict ${SubscriberDict} s_tag |
| 304 | ${c_tag}= utils.getFieldValueFromDict ${SubscriberDict} c_tag |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 305 | ${VoltDeviceList}= utils.jsonToList ${VOLT_DEVICE_PATHFILE} VOLTDeviceInfo |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 306 | ${VoltDeviceDict}= utils.setFieldValueInDict ${VoltDeviceList[0]} volt_service_id ${volt_service_id} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 307 | Set Global Variable ${VoltDeviceList} |
Kailash Khalasi | 4e1ce76 | 2018-12-18 20:29:29 -0800 | [diff] [blame] | 308 | Set Global Variable ${VoltDeviceDict} |
Kailash Khalasi | 6dab16e | 2018-09-17 20:24:08 -0700 | [diff] [blame] | 309 | Set Suite Variable ${s_tag} |
| 310 | Set Suite Variable ${c_tag} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 311 | Set Global Variable ${export_kubeconfig} export KUBECONFIG=${KUBERNETES_CONF} |
| 312 | # Read variables from yaml file |
| 313 | ${src_ip}= Evaluate ${hosts}.get("src").get("ip") |
| 314 | ${src_user}= Evaluate ${hosts}.get("src").get("user") |
| 315 | ${src_pass}= Evaluate ${hosts}.get("src").get("pass") |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 316 | ${src_container_type}= Evaluate ${hosts}.get("src").get("container_type") |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 317 | ${src_container_name}= Evaluate ${hosts}.get("src").get("container_name") |
| 318 | ${src_iface}= Evaluate ${hosts}.get("src").get("dp_iface_name") |
| 319 | ${dst_ip}= Evaluate ${hosts}.get("dst").get("ip") |
| 320 | ${dst_user} = Evaluate ${hosts}.get("dst").get("user") |
| 321 | ${dst_pass}= Evaluate ${hosts}.get("dst").get("pass") |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 322 | ${dst_container_type}= Evaluate ${hosts}.get("dst").get("container_type") |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 323 | ${dst_container_name}= Evaluate ${hosts}.get("dst").get("container_name") |
| 324 | ${dst_dp_iface}= Evaluate ${hosts}.get("dst").get("dp_iface_name") |
| 325 | ${dst_dp_ip}= Evaluate ${hosts}.get("dst").get("dp_iface_ip_qinq") |
| 326 | ${olt_ip}= Evaluate ${olts}[0].get("ip") |
| 327 | ${olt_user}= Evaluate ${olts}[0].get("user") |
| 328 | ${olt_pass}= Evaluate ${olts}[0].get("pass") |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 329 | ${k8s_node_ip}= Evaluate ${nodes}[0].get("ip") |
| 330 | ${k8s_node_user}= Evaluate ${nodes}[0].get("user") |
| 331 | ${k8s_node_pass}= Evaluate ${nodes}[0].get("pass") |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 332 | Set Suite Variable ${src_ip} |
| 333 | Set Suite Variable ${src_user} |
| 334 | Set Suite Variable ${src_pass} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 335 | Set Suite Variable ${src_container_type} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 336 | Set Suite Variable ${src_container_name} |
| 337 | Set Suite Variable ${src_iface} |
| 338 | Set Suite Variable ${dst_ip} |
| 339 | Set Suite Variable ${dst_user} |
| 340 | Set Suite Variable ${dst_pass} |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 341 | Set Suite Variable ${dst_container_type} |
You Wang | 59ded6c | 2018-10-05 17:43:44 -0700 | [diff] [blame] | 342 | Set Suite Variable ${dst_container_name} |
| 343 | Set Suite Variable ${dst_dp_iface} |
| 344 | Set Suite Variable ${dst_dp_ip} |
| 345 | Set Suite Variable ${olt_ip} |
| 346 | Set Suite Variable ${olt_user} |
| 347 | Set Suite Variable ${olt_pass} |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 348 | Set Suite Variable ${k8s_node_ip} |
| 349 | Set Suite Variable ${k8s_node_user} |
| 350 | Set Suite Variable ${k8s_node_pass} |
| 351 | @{container_list}= Create List |
Kailash Khalasi | dd9136a | 2018-10-18 11:16:18 -0700 | [diff] [blame] | 352 | Append To List ${container_list} att-workflow-att-workflow-driver |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 353 | Append To List ${container_list} seba-services-volt |
| 354 | Append To List ${container_list} seba-services-rcord |
Suchitra Vemuri | 38102e0 | 2019-02-26 16:20:21 -0800 | [diff] [blame^] | 355 | Append To List ${container_list} seba-services-onos |
Kailash Khalasi | e59ba70 | 2018-12-18 19:36:03 -0800 | [diff] [blame] | 356 | Append To List ${container_list} seba-services-fabric-crossconnect |
You Wang | f573e40 | 2018-10-17 14:01:59 -0700 | [diff] [blame] | 357 | Append To List ${container_list} xos-core |
| 358 | Append To List ${container_list} vcore |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 359 | Set Suite Variable ${container_list} |
| 360 | ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass} |
| 361 | Set Suite Variable ${datetime} |
Suchitra Vemuri | ff82532 | 2018-09-07 14:00:04 -0700 | [diff] [blame] | 362 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 363 | Teardown Suite |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 364 | [Documentation] Performs any additional cleanup required |
| 365 | Log Suite Teardown cleanup |
| 366 | Delete All Sessions |
| 367 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 368 | Setup Test |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 369 | [Documentation] Re-create Subscriber, whitelist, and olt-device models to test |
| 370 | Log Re-creating objects |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 371 | ${datetime}= Get Current Datetime On Kubernetes Node ${k8s_node_ip} ${k8s_node_user} ${k8s_node_pass} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 372 | Create Whitelist |
| 373 | Create Subscriber |
| 374 | Create VOLT |
| 375 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 376 | Teardown Test |
Kailash Khalasi | f3e0a9f | 2018-09-18 13:43:42 -0700 | [diff] [blame] | 377 | [Documentation] Delete xos objects, kills processes and cleans up interfaces on src+dst servers |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 378 | Clean Up Linux |
| 379 | Clean Up XOS |
You Wang | 8fff6a0 | 2018-10-15 16:26:54 -0700 | [diff] [blame] | 380 | Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 381 | |
| 382 | Clean Up Linux |
| 383 | [Documentation] Kill processes and clean up interfaces on src+dst servers |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 384 | Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 385 | Run Keyword And Ignore Error Kill Linux Process [d]hclient ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 386 | Run Keyword If '${dst_ip}' != '${None}' Run Keyword And Ignore Error Kill Linux Process [d]hcpd ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
| 387 | Delete IP Addresses from Interface on Remote Host ${src_iface} ${src_ip} ${src_user} ${src_pass} ${src_container_type} ${src_container_name} |
| 388 | Run Keyword If '${dst_ip}' != '${None}' Delete Interface on Remote Host ${dst_dp_iface}.${s_tag} ${dst_ip} ${dst_user} ${dst_pass} ${dst_container_type} ${dst_container_name} |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 389 | |
| 390 | Clean Up XOS |
| 391 | [Documentation] Clean up all XOS objects and reinstall voltha after OLT reboots |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 392 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_SUBSCRIBER} |
You Wang | 88e1d85 | 2018-10-05 11:44:19 -0700 | [diff] [blame] | 393 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_WHITELIST} |
Suchitra Vemuri | 4d81bf1 | 2018-11-28 12:32:58 -0800 | [diff] [blame] | 394 | Sleep 20s |
Kailash | efc1e0d | 2018-11-20 13:49:06 -0800 | [diff] [blame] | 395 | Wait Until Keyword Succeeds 30s 2s Validate Subscriber Count 0 |
Kailash | d158711 | 2018-11-20 11:55:16 -0800 | [diff] [blame] | 396 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${VOLT_DEVICE} |
Kailash | efc1e0d | 2018-11-20 13:49:06 -0800 | [diff] [blame] | 397 | Wait Until Keyword Succeeds 60s 2s Clean Up Objects ${ATT_SERVICEINSTANCES} |
You Wang | 0c2b366 | 2018-10-01 16:56:17 -0700 | [diff] [blame] | 398 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability False ${olt_ip} |
| 399 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability True ${olt_ip} |
| 400 | Wait Until Keyword Succeeds 120s 10s Openolt is Up ${olt_ip} ${olt_user} ${olt_pass} |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 401 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 402 | Create Whitelist |
| 403 | ${AttWhiteListDict}= utils.listToDict ${AttWhiteListList} 0 |
| 404 | CORD Post ${ATT_WHITELIST} ${AttWhiteListDict} |
| 405 | |
You Wang | 9f7eb39 | 2018-10-09 17:49:34 -0700 | [diff] [blame] | 406 | Remove Whitelist |
| 407 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 408 | CORD Delete ${ATT_WHITELIST} ${whitelist_id} |
| 409 | |
| 410 | Update Whitelist with Wrong Location |
| 411 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 412 | CORD Put ${ATT_WHITELIST} {"pon_port_id": 55 } ${whitelist_id} |
| 413 | |
| 414 | Update Whitelist with Correct Location |
| 415 | ${whitelist_id}= Retrieve Whitelist Entry ${onu_device} |
| 416 | CORD Put ${ATT_WHITELIST} {"pon_port_id": ${onu_location} } ${whitelist_id} |
| 417 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 418 | Create Subscriber |
| 419 | ${SubscriberDict}= utils.listToDict ${SubscriberList} 0 |
| 420 | Wait Until Keyword Succeeds 120s 15s CORD Post ${VOLT_SUBSCRIBER} ${SubscriberDict} |
Kailash Khalasi | a0810ce | 2018-09-10 13:03:27 -0700 | [diff] [blame] | 421 | |
You Wang | f573e40 | 2018-10-17 14:01:59 -0700 | [diff] [blame] | 422 | Remove Subscriber |
| 423 | ${subscriber_id}= Retrieve Subscriber ${c_tag} |
| 424 | CORD Delete ${VOLT_SUBSCRIBER} ${subscriber_id} |
| 425 | |
You Wang | 5be816a | 2018-10-11 16:45:31 -0700 | [diff] [blame] | 426 | Create VOLT |
Suchitra Vemuri | a63b6de | 2019-02-04 18:55:33 -0800 | [diff] [blame] | 427 | CORD Post ${VOLT_DEVICE} ${VoltDeviceDict} |