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