[VOL-3820] Updated dmi-interface test to refer olt name from test input file
Change-Id: I8180c031b9e940738747b3adc97c51b0caaaee7a
diff --git a/tests/data/dmi-components-bbsim.yaml b/tests/data/dmi-components-bbsim.yaml
index a306b30..d43b0db 100755
--- a/tests/data/dmi-components-bbsim.yaml
+++ b/tests/data/dmi-components-bbsim.yaml
@@ -20,6 +20,7 @@
GIVEN_DM_IP: 127.0.0.1
GIVEN_DM_PORT: 50075
GIVEN_OLT_IP: bbsim0
+GIVEN_OLT_NAME: BBSim-BBSIM_OLT_0
dm_components:
-
diff --git a/tests/dmi-interface/dmi-hw-management.robot b/tests/dmi-interface/dmi-hw-management.robot
index fcc8f7c..931c000 100755
--- a/tests/dmi-interface/dmi-hw-management.robot
+++ b/tests/dmi-interface/dmi-hw-management.robot
@@ -30,6 +30,7 @@
${DEVICEMANAGER_IP} ${GIVEN_DM_IP}
${DEVICEMANAGER_PORT} ${GIVEN_DM_PORT}
${OLT_IP} ${GIVEN_OLT_IP}
+${OLT_NAME} ${GIVEN_OLT_NAME}
*** Test Cases ***
Start and Stop Managing Device In Device Manager
@@ -128,15 +129,14 @@
Suite Setup
[Documentation] start a managed device in the device manager
dmi1.Connection Open ${DEVICEMANAGER_IP} ${DEVICEMANAGER_PORT}
- ${name}= Set Variable BBSim-BBSIM_OLT_0
- ${suite_device_uuid}= Start Managing Device dmi1 ${OLT_IP} ${name}
- ${suite_device_name}= Evaluate {'name':'BBSim-BBSIM_OLT_0'}
+ ${suite_device_uuid}= Start Managing Device dmi1 ${OLT_IP} ${OLT_NAME}
+ ${suite_device_name}= Evaluate {'name':'${OLT_NAME}'}
Set Suite Variable ${suite_device_uuid}
Set Suite Variable ${suite_device_name}
Suite Teardown
[Documentation] stop a managed device in device manager
- Stop Managing Device dmi1 BBSim-BBSIM_OLT_0
+ Stop Managing Device dmi1 ${OLT_NAME}
dmi1.Connection Close
Search For Managed Devices And Stop Managing It dmi1