Inventory: Verify MAC Address Property Is Populated
Change-Id: I826c883beb556a2d555d70f598790a017eee4a51
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/managers/test_managers_bmc.robot b/redfish/managers/test_managers_bmc.robot
index 3537447..cd86e54 100644
--- a/redfish/managers/test_managers_bmc.robot
+++ b/redfish/managers/test_managers_bmc.robot
@@ -6,6 +6,8 @@
Resource ../../lib/openbmc_ffdc.robot
Resource ../../lib/boot_utils.robot
Resource ../../lib/open_power_utils.robot
+Resource ../../lib/bmc_network_utils.robot
+Library ../../lib/gen_robot_valid.py
Test Setup Test Setup Execution
Test Teardown Test Teardown Execution
@@ -56,6 +58,20 @@
Should Be Equal As Strings ${resp.dict["PowerState"]} On
+Verify MAC Address Property Is Populated
+ [Documentation] Verify BMC managers resource properties.
+ [Tags] Verify_MAC_Address_Property_Is_Populated
+
+ ${redfish_mac_addr}= Redfish.Get Attribute /redfish/v1/Managers/bmc/EthernetInterfaces/eth0 MACAddress
+ Rprint Vars redfish_mac_addr fmt=terse
+ Rvalid Value redfish_mac_addr
+
+ ${ipaddr_mac_addr}= Get BMC MAC Address List
+ Rprint Vars ipaddr_mac_addr fmt=terse
+
+ List Should Contain Value ${ipaddr_mac_addr} ${redfish_mac_addr}
+
+
Redfish BMC Manager GracefulRestart When Host Off
[Documentation] BMC graceful restart when host is powered off.
[Tags] Redfish_BMC_Manager_GracefulRestart_When_Host_Off