OpenBMC Test setup test suite for readiness update
Changes:
- Added Redfish test.
- Restructure to individual test cases to isolate failures
during execution.
Change-Id: Id1f2908390b6932d0b8f02beb2a9bd1c85f02fc4
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/templates/test_openbmc_setup.robot b/templates/test_openbmc_setup.robot
index 4f83f9b..007f2db 100644
--- a/templates/test_openbmc_setup.robot
+++ b/templates/test_openbmc_setup.robot
@@ -5,13 +5,20 @@
Resource ../lib/rest_client.robot
Resource ../lib/connection_client.robot
Resource ../lib/ipmi_client.robot
+Resource ../lib/bmc_redfish_resource.robot
*** Test Cases ***
-Test OpenBMC Automation Setup
- [Documentation] Verify REST, SSH, Out-of-band IPMI and others.
+Test Redfish Setup
+ [Documentation] Verify Redfish works.
- Log To Console \n *** Testing REST Setup ***
+ Redfish.Login
+ Redfish.Get /redfish/v1/
+ Redfish.Logout
+
+
+Test REST Setup
+ [Documentation] Verify REST works.
# REST Connection and request.
Initialize OpenBMC
@@ -21,15 +28,15 @@
${content}= To JSON ${resp.content} pretty_print=True
Log To Console \n ${content}
- Log To Console \n *** Testing SSH Setup ***
- # SSH Connection and request.
- Open Connection And Log In
- ${bmc_kernel}= Execute Command uname -a
- Log To Console \n ${bmc_kernel}
+Test SSH Setup
+ [Documentation] Verify SSH works.
- Log To Console \n *** Testing Out-of-band IPMI tool Setup ***
+ BMC Execute Command uname -a
- # IPMI Connection and request.
+
+Test IPMI Setup
+ [Documentation] Verify Out-of-band works.
+
${chassis_status}= Run IPMI Standard Command chassis status
Log To Console \n ${chassis_status}