Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [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 This test raises alarms using bbsimctl and verifies them using voltctl |
| 17 | Suite Setup Setup Suite |
| 18 | Suite Teardown Teardown Suite |
| 19 | Library Collections |
| 20 | Library String |
| 21 | Library OperatingSystem |
| 22 | Library XML |
| 23 | Library RequestsLibrary |
| 24 | Library ../../libraries/DependencyLibrary.py |
| 25 | Resource ../../libraries/onos.robot |
| 26 | Resource ../../libraries/voltctl.robot |
| 27 | Resource ../../libraries/utils.robot |
| 28 | Resource ../../libraries/k8s.robot |
Hardik Windlass | fb1d1e4 | 2021-10-28 06:25:52 +0000 | [diff] [blame] | 29 | Resource ../../libraries/voltha.robot |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 30 | Resource ../../variables/variables.robot |
| 31 | |
| 32 | *** Variables *** |
| 33 | ${timeout} 60s |
| 34 | ${long_timeout} 420s |
| 35 | ${of_id} 0 |
| 36 | ${logical_id} 0 |
| 37 | ${has_dataplane} True |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 38 | ${setup_device} True |
| 39 | ${teardown_device} True |
| 40 | ${VOLTCTL_NAMESPACE} default |
| 41 | ${BBSIMCTL_NAMESPACE} voltha |
| 42 | ${VOLTCTL_POD_NAME} voltctl |
| 43 | ${BBSIMCTL_POD_NAME} bbsim |
Hardik Windlass | a9b3826 | 2021-10-27 08:14:22 +0000 | [diff] [blame] | 44 | ${INFRA_NAMESPACE} default |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 45 | |
| 46 | *** Test Cases *** |
| 47 | Ensure required pods Running |
| 48 | [Documentation] Ensure the bbsim and voltctl pods are in Running state |
| 49 | [Tags] active |
| 50 | Validate Pod Status ${BBSIMCTL_POD_NAME} ${BBSIMCTL_NAMESPACE} Running |
| 51 | Validate Pod Status ${VOLTCTL_POD_NAME} ${VOLTCTL_NAMESPACE} Running |
| 52 | |
| 53 | ONU Discovery |
| 54 | [Documentation] Discover lists of ONUS, their Serial Numbers and device id, and pick one for subsequent tests |
| 55 | [Tags] active |
| 56 | #build onu sn list |
| 57 | ${List_ONU_Serial} Create List |
| 58 | Set Suite Variable ${List_ONU_Serial} |
| 59 | Build ONU SN List ${List_ONU_Serial} |
| 60 | Log ${List_ONU_Serial} |
| 61 | #validate onu states |
| 62 | Wait Until Keyword Succeeds ${long_timeout} 20s |
| 63 | ... Validate ONU Devices ENABLED ACTIVE REACHABLE ${List_ONU_Serial} |
| 64 | # Pick an ONU to use for subsequent test cases |
| 65 | ${onu_sn} Set Variable ${List_ONU_Serial}[0] |
| 66 | Set Suite Variable ${onu_sn} |
| 67 | ${onu_id} Get Device ID From SN ${onu_sn} |
| 68 | Set Suite Variable ${onu_id} |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 69 | ${parent_id} Get Parent ID From Device ID ${onu_id} |
| 70 | Set Suite Variable ${parent_id} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 71 | |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 72 | Test RaiseDriftOfWindowAlarm |
| 73 | [Documentation] Raise Drift Of Window Alarm and verify event received |
| 74 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 75 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_DRIFT_OF_WINDOW |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 76 | ... ${onu_sn} ONU_DRIFT_OF_WINDOW_RAISE_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 77 | Verify Header ${header} Voltha.openolt.ONU_DRIFT_OF_WINDOW\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 78 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_DRIFT_OF_WINDOW_RAISE_EVENT |
| 79 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 80 | |
| 81 | Test ClearDriftOfWindowAlarm |
| 82 | [Documentation] Clear Drift Of Window Alarm and verify event received |
| 83 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 84 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_DRIFT_OF_WINDOW |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 85 | ... ${onu_sn} ONU_DRIFT_OF_WINDOW_CLEAR_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 86 | Verify Header ${header} Voltha.openolt.ONU_DRIFT_OF_WINDOW\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 87 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_DRIFT_OF_WINDOW_CLEAR_EVENT |
| 88 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 89 | |
| 90 | Test RaiseDyingGaspAlarm |
| 91 | [Documentation] Raise Dying Gasp Alarm and verify event received |
| 92 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 93 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event DYING_GASP |
Scott Baker | ee67555 | 2020-02-11 10:43:34 -0800 | [diff] [blame] | 94 | ... ${onu_sn} ONU_DYING_GASP_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 95 | Verify Header ${header} Voltha.openolt.ONU_DYING\.(\\d+) ONU |
Scott Baker | ee67555 | 2020-02-11 10:43:34 -0800 | [diff] [blame] | 96 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_DYING_GASP_EVENT |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 97 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 98 | |
| 99 | Test RaiseLopcMissAlarm |
| 100 | [Documentation] Raise LOPC_MISS Alarm and verify event received |
| 101 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 102 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_ALARM_LOPC_MISS |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 103 | ... ${onu_sn} ONU_LOPC_MISS_RAISE_EVENT |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 104 | Verify Header ${header} Voltha.openolt.ONU_LOPC_MISS\.(\\d+) ONU |
| 105 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOPC_MISS_RAISE_EVENT |
| 106 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 107 | |
| 108 | Test ClearLopcMissAlarm |
| 109 | [Documentation] Clear LOPC_MISS Alarm and verify event received |
| 110 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 111 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_ALARM_LOPC_MISS |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 112 | ... ${onu_sn} ONU_LOPC_MISS_CLEAR_EVENT |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 113 | Verify Header ${header} Voltha.openolt.ONU_LOPC_MISS\.(\\d+) ONU |
| 114 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOPC_MISS_CLEAR_EVENT |
| 115 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 116 | |
| 117 | Test RaiseLopcMicErrorAlarm |
| 118 | [Documentation] Raise LOPC_MISS Alarm and verify event received |
| 119 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 120 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_ALARM_LOPC_MIC_ERROR |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 121 | ... ${onu_sn} ONU_LOPC_MIC_ERROR_RAISE_EVENT |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 122 | Verify Header ${header} Voltha.openolt.ONU_LOPC_MIC_ERROR\.(\\d+) ONU |
| 123 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOPC_MIC_ERROR_RAISE_EVENT |
| 124 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 125 | |
| 126 | Test ClearLopcMicErrorAlarm |
| 127 | [Documentation] Clear LOPC_MISS Alarm and verify event received |
| 128 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 129 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_ALARM_LOPC_MIC_ERROR |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 130 | ... ${onu_sn} ONU_LOPC_MIC_ERROR_CLEAR_EVENT |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 131 | Verify Header ${header} Voltha.openolt.ONU_LOPC_MIC_ERROR\.(\\d+) ONU |
| 132 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOPC_MIC_ERROR_CLEAR_EVENT |
| 133 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 134 | |
| 135 | Test RaiseLossOfBurstAlarm |
| 136 | [Documentation] Raise Loss Of Burst Alarm and verify event received |
| 137 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 138 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_ALARM_LOB |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 139 | ... ${onu_sn} ONU_LOSS_OF_BURST_RAISE_EVENT |
| 140 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_BURST\.(\\d+) ONU |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 141 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_BURST_RAISE_EVENT |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 142 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 143 | |
| 144 | Test ClearLossOfBurstAlarm |
| 145 | [Documentation] Clear Loss Of Burst Alarm and verify event received |
| 146 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 147 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_ALARM_LOB |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 148 | ... ${onu_sn} ONU_LOSS_OF_BURST_CLEAR_EVENT |
| 149 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_BURST\.(\\d+) ONU |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 150 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_BURST_CLEAR_EVENT |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 151 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 152 | |
| 153 | Test RaiseLossOfFrameAlarm |
| 154 | [Documentation] Raise Loss Of Frame Alarm and verify event received |
| 155 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 156 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_ALARM_LOFI |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 157 | ... ${onu_sn} ONU_LOSS_OF_FRAME_RAISE_EVENT |
| 158 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_FRAME\.(\\d+) ONU |
| 159 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_FRAME_RAISE_EVENT |
| 160 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 161 | |
| 162 | Test ClearLossOfFrameAlarm |
| 163 | [Documentation] Clear Loss Of Frame Alarm and verify event received |
| 164 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 165 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_ALARM_LOFI |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 166 | ... ${onu_sn} ONU_LOSS_OF_FRAME_CLEAR_EVENT |
| 167 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_FRAME\.(\\d+) ONU |
| 168 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_FRAME_CLEAR_EVENT |
| 169 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 170 | |
| 171 | Test RaiseLossOfKeySyncFailureAlarm |
| 172 | [Documentation] Raise Loss Of Key Sync Alarm and verify event received |
| 173 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 174 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_LOSS_OF_KEY_SYNC_FAILURE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 175 | ... ${onu_sn} ONU_LOSS_OF_KEY_SYNC_RAISE_EVENT |
| 176 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_KEY_SYNC\.(\\d+) ONU |
| 177 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_KEY_SYNC_RAISE_EVENT |
| 178 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 179 | |
| 180 | Test ClearLossOfKeySyncFailureAlarm |
| 181 | [Documentation] Clear Loss Of Key Sync Alarm and verify event received |
| 182 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 183 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_LOSS_OF_KEY_SYNC_FAILURE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 184 | ... ${onu_sn} ONU_LOSS_OF_KEY_SYNC_CLEAR_EVENT |
| 185 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_KEY_SYNC\.(\\d+) ONU |
| 186 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_KEY_SYNC_CLEAR_EVENT |
| 187 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 188 | |
| 189 | Test RaiseLossOfOmciChannelAlarm |
| 190 | [Documentation] Raise Loss Of Omci Channel Alarm and verify event received |
| 191 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 192 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_LOSS_OF_OMCI_CHANNEL |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 193 | ... ${onu_sn} ONU_LOSS_OF_OMCI_CHANNEL_RAISE_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 194 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_OMCI_CHANNEL\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 195 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_OMCI_CHANNEL_RAISE_EVENT |
| 196 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 197 | |
| 198 | Test ClearLossOfOmciChannelAlarm |
| 199 | [Documentation] Clear Loss Of Omci Channel Alarm and verify event received |
| 200 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 201 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_LOSS_OF_OMCI_CHANNEL |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 202 | ... ${onu_sn} ONU_LOSS_OF_OMCI_CHANNEL_CLEAR_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 203 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_OMCI_CHANNEL\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 204 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_OMCI_CHANNEL_CLEAR_EVENT |
| 205 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 206 | |
| 207 | Test RaiseLossOfPloamAlarm |
| 208 | [Documentation] Raise Loss Of Ploam Alarm and verify event received |
| 209 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 210 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_ALARM_LOAMI |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 211 | ... ${onu_sn} ONU_LOSS_OF_PLOAM_RAISE_EVENT |
| 212 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_PLOAM\.(\\d+) ONU |
| 213 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_PLOAM_RAISE_EVENT |
| 214 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 215 | |
| 216 | Test ClearLossOfPloamAlarm |
| 217 | [Documentation] Clear Loss Of Ploam Alarm and verify event received |
| 218 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 219 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_ALARM_LOAMI |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 220 | ... ${onu_sn} ONU_LOSS_OF_PLOAM_CLEAR_EVENT |
| 221 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_PLOAM\.(\\d+) ONU |
| 222 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_PLOAM_CLEAR_EVENT |
| 223 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 224 | |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 225 | # NOTE: ONU_ALARM_LOS a bit touchy as it seems to be automatically suppressed if |
| 226 | # multiples are sent in a row. It seems like the bbsim state machine is interacting |
| 227 | # with alarms, sometimes causing an ONU_ALARM_LOS to be sent, which then causes |
| 228 | # this test to be a duplicate, which in turn is suppressed and fails. So what we |
| 229 | # do is issue a CLEAR right before the RAISE. |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 230 | Test RaiseLossOfSignalAlarm |
| 231 | [Documentation] Raise Loss Of Signal Alarm and verify event received |
| 232 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 233 | Clear Onu Alarm ONU_ALARM_LOS ${onu_sn} |
| 234 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_ALARM_LOS |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 235 | ... ${onu_sn} ONU_LOSS_OF_SIGNAL_RAISE_EVENT |
| 236 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_SIGNAL\.(\\d+) ONU |
| 237 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_SIGNAL_RAISE_EVENT |
| 238 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 239 | |
| 240 | Test ClearLossOfSignalAlarm |
| 241 | [Documentation] Clear Loss Of Signal Alarm and verify event received |
| 242 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 243 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_ALARM_LOS |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 244 | ... ${onu_sn} ONU_LOSS_OF_SIGNAL_CLEAR_EVENT |
| 245 | Verify Header ${header} Voltha.openolt.ONU_LOSS_OF_SIGNAL\.(\\d+) ONU |
| 246 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_LOSS_OF_SIGNAL_CLEAR_EVENT |
| 247 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 248 | |
| 249 | Test RaisePonLossOfSignalAlarm |
| 250 | [Documentation] Raise Loss Of Signal Alarm and verify event received |
| 251 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 252 | ${header} ${deviceEvent} Raise Olt Alarm And Get Event OLT_PON_LOS |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 253 | ... 0 OLT_LOSS_OF_SIGNAL_RAISE_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 254 | Verify Header ${header} Voltha.openolt.OLT_LOSS_OF_SIGNAL\.(\\d+) PON |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 255 | Should Be Equal ${deviceEvent}[deviceEventName] OLT_LOSS_OF_SIGNAL_RAISE_EVENT |
| 256 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 257 | |
| 258 | Test ClearPonLossOfSignalAlarm |
| 259 | [Documentation] Clear Loss Of Signal Alarm and verify event received |
| 260 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 261 | ${header} ${deviceEvent} Clear Olt Alarm And Get Event OLT_PON_LOS |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 262 | ... 0 OLT_LOSS_OF_SIGNAL_CLEAR_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 263 | Verify Header ${header} Voltha.openolt.OLT_LOSS_OF_SIGNAL\.(\\d+) PON |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 264 | Should Be Equal ${deviceEvent}[deviceEventName] OLT_LOSS_OF_SIGNAL_CLEAR_EVENT |
| 265 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 266 | |
| 267 | Test RaiseProcessingErrorAlarm |
| 268 | # Not Implemented |
| 269 | [Documentation] Raise Processing Error Alarm and verify event received |
| 270 | [Tags] not-active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 271 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_PROCESSING_ERROR |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 272 | ... ${onu_sn} ONU_PROCESSING_ERROR_RAISE_EVENT |
| 273 | Verify Header ${header} Voltha.openolt.ONU_PROCESSING_ERROR\.(\\d+) ONU |
| 274 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_PROCESSING_ERROR_RAISE_EVENT |
| 275 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 276 | |
| 277 | Test ClearProcessingErrorAlarm |
| 278 | # Not Implemented |
| 279 | [Documentation] Clear Processing Error Alarm and verify event received |
| 280 | [Tags] not-active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 281 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_PROCESSING_ERROR |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 282 | ... ${onu_sn} ONU_PROCESSING_ERROR_CLEAR_EVENT |
| 283 | Verify Header ${header} Voltha.openolt.ONU_PROCESSING_ERROR\.(\\d+) ONU |
| 284 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_PROCESSING_ERROR_CLEAR_EVENT |
| 285 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 286 | |
| 287 | Test RaiseSignalDegradeAlarm |
| 288 | [Documentation] Raise Signal Degrade Alarm and verify event received |
| 289 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 290 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_SIGNAL_DEGRADE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 291 | ... ${onu_sn} ONU_SIGNAL_DEGRADE_RAISE_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 292 | Verify Header ${header} Voltha.openolt.ONU_SIGNAL_DEGRADE\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 293 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNAL_DEGRADE_RAISE_EVENT |
| 294 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 295 | |
| 296 | Test ClearSignalDegradeAlarm |
| 297 | [Documentation] Clear Signal Degrade Alarm and verify event received |
| 298 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 299 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_SIGNAL_DEGRADE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 300 | ... ${onu_sn} ONU_SIGNAL_DEGRADE_CLEAR_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 301 | Verify Header ${header} Voltha.openolt.ONU_SIGNAL_DEGRADE\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 302 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNAL_DEGRADE_CLEAR_EVENT |
| 303 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 304 | |
| 305 | Test RaiseSignalsFailureAlarm |
| 306 | [Documentation] Raise Signals Fail Alarm and verify event received |
| 307 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 308 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_SIGNALS_FAILURE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 309 | ... ${onu_sn} ONU_SIGNALS_FAIL_RAISE_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 310 | Verify Header ${header} Voltha.openolt.ONU_SIGNALS_FAIL\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 311 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNALS_FAIL_RAISE_EVENT |
| 312 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 313 | |
| 314 | Test ClearSignalsFailureAlarm |
| 315 | [Documentation] Clear Signals Fail Alarm and verify event received |
| 316 | [Tags] active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 317 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_SIGNALS_FAILURE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 318 | ... ${onu_sn} ONU_SIGNALS_FAIL_CLEAR_EVENT |
Andrea Campanella | ff8abb2 | 2021-02-22 16:00:40 +0100 | [diff] [blame] | 319 | Verify Header ${header} Voltha.openolt.ONU_SIGNALS_FAIL\.(\\d+) ONU |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 320 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_SIGNALS_FAIL_CLEAR_EVENT |
| 321 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 322 | |
| 323 | Test RaiseStartupFailureAlarm |
| 324 | # Not Implemented |
| 325 | [Documentation] Raise Startup Failure Alarm and verify event received |
| 326 | [Tags] not-active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 327 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_STARTUP_FAILURE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 328 | ... ${onu_sn} ONU_STARTUP_FAILURE_RAISE_EVENT |
| 329 | Verify Header ${header} Voltha.openolt.ONU_STARTUP_FAILURE\.(\\d+) ONU |
| 330 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_STARTUP_FAILURE_RAISE_EVENT |
| 331 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 332 | |
| 333 | Test ClearStartupFailureAlarm |
| 334 | # Not Implemented |
| 335 | [Documentation] Clear Startup Failure Alarm and verify event received |
| 336 | [Tags] not-active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 337 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_STARTUP_FAILURE |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 338 | ... ${onu_sn} ONU_STARTUP_FAILURE_CLEAR_EVENT |
| 339 | Verify Header ${header} Voltha.openolt.ONU_STARTUP_FAILURE\.(\\d+) ONU |
| 340 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_STARTUP_FAILURE_CLEAR_EVENT |
| 341 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 342 | |
| 343 | Test RaiseTransmissionInterferenceAlarm |
| 344 | # Not Implemented |
| 345 | [Documentation] Raise Transmission Interference Alarm and verify event received |
| 346 | [Tags] not-active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 347 | ${header} ${deviceEvent} Raise Onu Alarm And Get Event ONU_TRANSMISSION_INTERFERENCE_WARNING |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 348 | ... ${onu_sn} ONU_TRANSMISSION_INTERFERENCE_RAISE_EVENT |
| 349 | Verify Header ${header} Voltha.openolt.ONU_TRANSMISSION_INTERFERENCE\.(\\d+) ONU |
| 350 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_TRANSMISSION_INTERFERENCE_RAISE_EVENT |
| 351 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 352 | |
| 353 | Test ClearTransmissionInterferenceAlarm |
| 354 | # Not Implemented |
| 355 | [Documentation] Clear Transmission Interference Alarm and verify event received |
| 356 | [Tags] not-active |
Scott Baker | e784000 | 2020-03-23 16:50:27 -0700 | [diff] [blame] | 357 | ${header} ${deviceEvent} Clear Onu Alarm And Get Event ONU_TRANSMISSION_INTERFERENCE_WARNING |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 358 | ... ${onu_sn} ONU_TRANSMISSION_INTERFERENCE_CLEAR_EVENT |
| 359 | Verify Header ${header} Voltha.openolt.ONU_TRANSMISSION_INTERFERENCE\.(\\d+) ONU |
| 360 | Should Be Equal ${deviceEvent}[deviceEventName] ONU_TRANSMISSION_INTERFERENCE_CLEAR_EVENT |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 361 | Should Be Equal ${deviceEvent}[resourceId] ${parent_id} |
| 362 | |
| 363 | *** Keywords *** |
| 364 | Setup Suite |
| 365 | [Documentation] Set up the test suite |
| 366 | Common Test Suite Setup |
| 367 | # Ensure the voltctl pod is deployed and running |
| 368 | Apply Kubernetes Resources ./voltctl.yaml ${VOLTCTL_NAMESPACE} |
| 369 | Wait Until Keyword Succeeds ${timeout} 5s |
| 370 | ... Validate Pod Status ${VOLTCTL_POD_NAME} ${VOLTCTL_NAMESPACE} Running |
| 371 | # Call Setup keyword in utils library to create and enable device |
| 372 | Run Keyword If ${setup_device} Setup |
| 373 | |
| 374 | Teardown Suite |
| 375 | [Documentation] Clean up devices if desired |
| 376 | ... kills processes and cleans up interfaces on src+dst servers |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 377 | Get ONOS Status ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 378 | Run Keyword If ${has_dataplane} Clean Up Linux |
Suchitra Vemuri | f8462be | 2020-11-05 13:38:42 -0800 | [diff] [blame] | 379 | Run Keyword If ${teardown_device} Delete All Devices and Verify |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 380 | Run Keyword If ${teardown_device} Test Empty Device List |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 381 | Run Keyword If ${teardown_device} Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 382 | ... device-remove ${of_id} |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 383 | Close All ONOS SSH Connections |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 384 | |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 385 | # Onu Alarms |
| 386 | |
| 387 | Raise Onu Alarm And Get Event |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 388 | [Documentation] Raise an Alarm and return event |
| 389 | [Arguments] ${name} ${sn} ${deviceEventName} |
| 390 | ${since} Get Current Time |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 391 | Raise Onu Alarm ${name} ${sn} |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 392 | ${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since} |
Scott Baker | ee67555 | 2020-02-11 10:43:34 -0800 | [diff] [blame] | 393 | ${LastEventPostTimestamp} Set Variable ${since} |
| 394 | Set Suite Variable ${LastEventPostTimestamp} |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 395 | [return] ${header} ${deviceEvent} |
| 396 | |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 397 | Clear Onu Alarm And Get Event |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 398 | [Documentation] Clear an Alarm and return event |
| 399 | [Arguments] ${name} ${sn} ${deviceEventName} |
| 400 | ${since} Get Current Time |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 401 | Clear Onu Alarm ${name} ${sn} |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 402 | ${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since} |
Scott Baker | ee67555 | 2020-02-11 10:43:34 -0800 | [diff] [blame] | 403 | ${LastEventPostTimestamp} Set Variable ${since} |
| 404 | Set Suite Variable ${LastEventPostTimestamp} |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 405 | [return] ${header} ${deviceEvent} |
| 406 | |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 407 | Raise Onu Alarm |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 408 | [Documentation] Raise an Alarm |
| 409 | [Arguments] ${name} ${sn} |
Andy Bavier | b63f6d2 | 2020-03-12 15:34:37 -0700 | [diff] [blame] | 410 | ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} |
| 411 | ... bbsimctl onu alarms raise ${name} ${sn} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 412 | Should Contain ${raiseOutput} Alarm Indication Sent |
| 413 | |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 414 | Clear Onu Alarm |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 415 | [Documentation] Raise an Alarm |
| 416 | [Arguments] ${name} ${sn} |
Andy Bavier | b63f6d2 | 2020-03-12 15:34:37 -0700 | [diff] [blame] | 417 | ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} |
| 418 | ... bbsimctl onu alarms clear ${name} ${sn} |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 419 | Should Contain ${raiseOutput} Alarm Indication Sent |
| 420 | |
| 421 | # Olt Alarms |
| 422 | |
| 423 | Raise Olt Alarm And Get Event |
| 424 | [Documentation] Raise an Alarm and return event |
| 425 | [Arguments] ${name} ${intf_id} ${deviceEventName} |
| 426 | ${since} Get Current Time |
| 427 | Raise Olt Alarm ${name} ${intf_id} |
| 428 | ${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since} |
| 429 | ${LastEventPostTimestamp} Set Variable ${since} |
| 430 | Set Suite Variable ${LastEventPostTimestamp} |
| 431 | [return] ${header} ${deviceEvent} |
| 432 | |
| 433 | Clear Olt Alarm And Get Event |
| 434 | [Documentation] Clear an Alarm and return event |
| 435 | [Arguments] ${name} ${intf_id} ${deviceEventName} |
| 436 | ${since} Get Current Time |
| 437 | Clear Olt Alarm ${name} ${intf_id} |
| 438 | ${header} ${deviceEvent} Get Device Event ${deviceEventName} ${since} |
| 439 | ${LastEventPostTimestamp} Set Variable ${since} |
| 440 | Set Suite Variable ${LastEventPostTimestamp} |
| 441 | [return] ${header} ${deviceEvent} |
| 442 | |
| 443 | Raise Olt Alarm |
| 444 | [Documentation] Raise an Alarm |
| 445 | [Arguments] ${name} ${intf_id} |
Andy Bavier | b63f6d2 | 2020-03-12 15:34:37 -0700 | [diff] [blame] | 446 | ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} |
| 447 | ... bbsimctl olt alarms raise ${name} ${intf_id} |
Scott Baker | ee03dd0 | 2020-03-12 11:48:06 -0700 | [diff] [blame] | 448 | Should Contain ${raiseOutput} Alarm Indication Sent |
| 449 | |
| 450 | Clear Olt Alarm |
| 451 | [Documentation] Raise an Alarm |
| 452 | [Arguments] ${name} ${intf_id} |
Andy Bavier | b63f6d2 | 2020-03-12 15:34:37 -0700 | [diff] [blame] | 453 | ${raiseOutput} Exec Pod ${BBSIMCTL_NAMESPACE} ${BBSIMCTL_POD_NAME} |
| 454 | ... bbsimctl olt alarms clear ${name} ${intf_id} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 455 | Should Contain ${raiseOutput} Alarm Indication Sent |
| 456 | |
| 457 | Get Device Event |
| 458 | [Documentation] Get the most recent alarm event from voltha.events |
| 459 | [Arguments] ${deviceEventName} ${since} |
| 460 | ${output} ${raiseErr} Exec Pod Separate Stderr ${VOLTCTL_NAMESPACE} ${VOLTCTL_POD_NAME} |
Girish Gowdra | 698a04b | 2020-11-23 10:24:43 -0800 | [diff] [blame] | 461 | ... voltctl event listen --show-body -t 1 -o json -f Titles=${deviceEventName} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 462 | ${json} To Json ${output} |
| 463 | ${count} Get Length ${json} |
| 464 | # If there is more than one event (which could happen if we quickly do a raise and a clear), |
| 465 | # then return the most recent one. |
| 466 | Should Be Larger Than ${count} 0 |
| 467 | ${lastIndex} Evaluate ${count}-1 |
| 468 | ${lastItem} Set Variable ${json}[${lastIndex}] |
| 469 | ${header} Set Variable ${lastItem}[header] |
| 470 | ${deviceEvent} Set Variable ${lastItem}[deviceEvent] |
| 471 | Log ${header} |
| 472 | Log ${deviceEvent} |
| 473 | [return] ${header} ${deviceEvent} |
| 474 | |
| 475 | Verify Header |
| 476 | [Documentation] Verify that a DeviceEvent's header is sane and the id matches regex |
Scott Baker | 27d04db | 2020-02-06 18:03:21 -0800 | [diff] [blame] | 477 | [Arguments] ${header} ${id} ${subCategory} |
| 478 | ${headerSubCategory} Evaluate $header.get("subCategory", "") |
| 479 | Should Be Equal ${headerSubCategory} ${subCategory} |
Scott Baker | 60e570d | 2020-02-02 22:10:13 -0800 | [diff] [blame] | 480 | Should Be Equal ${header}[type] DEVICE_EVENT |
| 481 | Should Match Regexp ${header}[id] ${id} |
Scott Baker | ee67555 | 2020-02-11 10:43:34 -0800 | [diff] [blame] | 482 | # TODO Timestamps are now RFC3339 date strings. Add Verification |
| 483 | ${reportedTs} Set Variable ${header}[reportedTs] |
| 484 | ${raisedTs} Set Variable ${header}[raisedTs] |
| 485 | Should Be Newer Than Or Equal To ${reportedTs} ${LastEventPostTimestamp} |
| 486 | Should Be Newer Than Or Equal To ${raisedTs} ${LastEventPostTimestamp} |