[VOL-4049] openonu-adapter-go: Test hardening of OMCI communication
This testsuite is a part to cover the requirement:
'Optionally parameter "omci_response_rate" could be set to "7" in an
additional test case which would lead to an unsuccessful test result.'
Change-Id: I627af7e8ce3337b7a753df0e777511375f51c5f3
diff --git a/libraries/onu_utilities.robot b/libraries/onu_utilities.robot
index dba9bc9..4c2900a 100755
--- a/libraries/onu_utilities.robot
+++ b/libraries/onu_utilities.robot
@@ -82,7 +82,7 @@
[Documentation] This keyword checks the passed state of all onus.
... Hint: ${timeStart} will be not evaluated here!
[Arguments] ${state} ${reqadminstate}=${EMPTY} ${reqoperstatus}=${EMPTY} ${reqconnectstatus}=${EMPTY}
- ... ${alternativeonustate}=${EMPTY}
+ ... ${alternativeonustate}=${EMPTY} ${timeout}=${timeout}
${timeStart}= Get Current Date
${list_onus} Create List
Build ONU SN List ${list_onus}
@@ -95,6 +95,8 @@
... Validate ONU Devices With Duration
... ${admin_state} ${oper_status} ${connect_status}
... ${onu_state} ${list_onus} ${timeStart} alternate_reason=${alternativeonustate}
+ # teardown is used as 'return' for result of Validate ONU Devices With Duration (used for ONUNegativeStateTests)
+ [Teardown] Run Keyword If "${KEYWORD STATUS}"=="FAIL" Set Suite Variable ${StateTestAllONUs} False
Log Ports
[Documentation] This keyword logs all port data available in ONOS of first port per ONU