REDFISH: Script fix needed for to remove hard-coded channel number from test_multiple_interfaces.robot
Changes:
- Fix to remove hard-coded channel number
Tested:
- Ran redfish/managers/test_multiple_interfaces.robot
Change-Id: I3c33f667d08e50d6faef0fabe2c392c794896de5
Signed-off-by: KothaiSrini <kothais@ami.com>
diff --git a/lib/resource.robot b/lib/resource.robot
index db0ccab..c85acee 100755
--- a/lib/resource.robot
+++ b/lib/resource.robot
@@ -100,6 +100,7 @@
${ICMP_TIMESTAMP_REQUEST} 13
${ICMP_ECHO_REQUEST} 8
${CHANNEL_NUMBER} 1
+${SECONDARY_CHANNEL_NUMBER} 2
${TCP_PACKETS} tcp
${TCP_CONNECTION} tcp-connect
${ICMP_NETMASK_REQUEST} 17
diff --git a/redfish/managers/test_multiple_interfaces.robot b/redfish/managers/test_multiple_interfaces.robot
index 486221ea..90bd68d 100644
--- a/redfish/managers/test_multiple_interfaces.robot
+++ b/redfish/managers/test_multiple_interfaces.robot
@@ -64,7 +64,7 @@
Verify LDAP Login Works When Eth1 IP Is Not Configured
[Documentation] Verify LDAP login works when eth1 IP is erased.
[Tags] Verify_LDAP_Login_Works_When_Eth1_IP_Is_Not_Configured
- [Setup] Run Keywords Set Test Variable ${CHANNEL_NUMBER} ${2}
+ [Setup] Run Keywords Set Test Variable ${CHANNEL_NUMBER} ${SECONDARY_CHANNEL_NUMBER}
... AND Delete IP Address ${OPENBMC_HOST_1}
... AND Redfish.Login
[Teardown] Run Keywords Redfish.Logout AND
@@ -101,7 +101,7 @@
Verify SNMP Works When Eth1 IP Is Not Configured
[Documentation] Verify SNMP works when eth1 IP is not configured.
[Tags] Verify_SNMP_Works_When_Eth1_IP_Is_Not_Configured
- [Setup] Run Keywords Set Test Variable ${CHANNEL_NUMBER} ${2}
+ [Setup] Run Keywords Set Test Variable ${CHANNEL_NUMBER} ${SECONDARY_CHANNEL_NUMBER}
... AND Delete IP Address ${OPENBMC_HOST_1}
[Teardown] Run Keywords Redfish.Login AND
... Add IP Address ${OPENBMC_HOST_1} ${eth1_subnet_mask} ${eth1_gateway}
@@ -207,7 +207,7 @@
Ping Host ${OPENBMC_HOST}
Ping Host ${OPENBMC_HOST_1}
- ${network_configurations}= Get Network Configuration Using Channel Number ${2}
+ ${network_configurations}= Get Network Configuration Using Channel Number ${SECONDARY_CHANNEL_NUMBER}
FOR ${network_configuration} IN @{network_configurations}
Run Keyword If '${network_configuration['Address']}' == '${OPENBMC_HOST_1}'