[VOL-3496] Disable/Enable openonu go adaptor device
Change-Id: I77ac5b70d5ac0239b847f7cc89073566da2c06a5
diff --git a/tests/openonu-go-adapter/Voltha_ONUStateTests.robot b/tests/openonu-go-adapter/Voltha_ONUStateTests.robot
index 3dd97d1..0abc16a 100755
--- a/tests/openonu-go-adapter/Voltha_ONUStateTests.robot
+++ b/tests/openonu-go-adapter/Voltha_ONUStateTests.robot
@@ -62,6 +62,9 @@
# flag for execute flow test, can be passed via the command line too
# example: -v flowtest:False
${flowtest} True
+# flag for execute disable/enable onu device test, can be passed via the command line too
+# example: -v disableenabletest:True
+${disableenabletest} False
# flag for execute reconcile onu device test, can be passed via the command line too
# example: -v reconciletest:True
${reconciletest} False
@@ -113,6 +116,15 @@
[Teardown] Run Keywords Run Keyword If ${logging} Collect Logs
... AND Stop Logging ONUPortTest
+Disable Enable Onu Device
+ [Documentation] Disables/enables ONU Device and check states
+ ... Assuming that ONU State Test was executed where all the ONUs are reached the expected state!
+ [Tags] onutest
+ [Setup] Start Logging DisableEnableONUDevice
+ Run Keyword If ${state2test}>=5 and ${disableenabletest} Do Disable Enable Onu Test
+ [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs
+ ... AND Stop Logging DisableEnableONUDevice
+
Reconcile Onu Device
[Documentation] Reconciles ONU Device and check state
... Assuming that ONU State Test was executed where all the ONUs are reached the expected state!
@@ -129,6 +141,7 @@
... \r\nPassed arguments:
... state2test:${state2test}, testmode:${testmode}, profiletest:${profiletest}, techprofile:${techprofile},
... porttest:${porttest}, flowtest:${flowtest}, reconciletest:${reconciletest},
+ ... disableenabletest:${disableenabletest},
... debugmode:${debugmode}, logging:${logging}, pausebeforecleanup:${pausebeforecleanup},
Log ${LogInfo} console=yes
Common Test Suite Setup