Adding Testcases for Set In Progress, Set MAC Address, Get Cipher suite privilege, Set Authentication Type support, Set IP Address Source.
Testcases :
- Verify Set In Progress
- Verify Invaild Set MAC Address Via IPMI
- Verify Get and Set MAC Address Via IPMI
- Verify Cipher Suite privilege
- Verify SET On Authentication Type
- Verify IP Address Source Set To Address Loaded By BIOS
- Verify IP Address Source Set To Address Obtained By BMC
- Verify IP Address Source Set To Unspecified Address Source
Request data for chassis status present in data/ipmi_raw_cmd_table.py
Verify Set In Progress - Sets the Set In progress byte to set-inprogress and set-complete. Verifies the response byte.
Verify Invaild Set MAC Address Via IPMI - Sets the invalid MAC address given in variable section and verifies the error code.
Verify Get and Set MAC Address Via IPMI - Sets the valid MAC Address and verifies it. Restores the default MAC address once the test is complete.
Verify Cipher Suite privilege - Get the Cipher Suite privilege and verifies the response byte and cipher suite length.
Verify Set On Authentication Type - Verifies set Authentication type support and verified error response byte since it is read only byte.
Verify IP Address Source Set To Address Loaded By BIOS - verified set IP address source to address loaded by BIOS or system software and verify error response code.
Verify IP Address Source Set To Address Obtained By BMC - verified set IP address source to address obtained by BMC running other address assignment protocol and verify error response code.
Verify IP Address Source Set To Unspecified Address Source - verified set IP address source to unspecified address and verify error response code.
Tested: Run robot ipmi/test_ipmi_network_verificaton.robot
Signed-off-by: chithrag <chithrag@ami.com>
Change-Id: I6ac5eca06d1bc9b61f999a532fa5c34647d76aba
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index 1a1a458..bfed034 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -94,7 +94,7 @@
Run Inband IPMI Raw Command
[Documentation] Run the raw IPMI command in-band.
- [Arguments] ${command} ${os_host}=${OS_HOST} ${os_username}=${OS_USERNAME}
+ [Arguments] ${command} ${fail_on_err}=${1} ${os_host}=${OS_HOST} ${os_username}=${OS_USERNAME}
... ${os_password}=${OS_PASSWORD}
# Description of argument(s):
@@ -110,6 +110,7 @@
${ipmi_cmd}= Catenate ${IPMI_INBAND_CMD} ${RAW} ${command}
Qprint Issuing ${ipmi_cmd}
${stdout} ${stderr}= Execute Command ${ipmi_cmd} return_stderr=True
+ Return From Keyword If ${fail_on_err} == ${0} ${stderr}
Should Be Empty ${stderr} msg=${stdout}
[Return] ${stdout}