Update template test suite
Changes:
- Remove legacy REST check test.
- Default to redfish test option
- Add tags
Tested:
- Ran from sandbox
Change-Id: I4fceecd033fa68fe6a1e7e57a5b54556b256d4f4
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/templates/test_openbmc_setup.robot b/templates/test_openbmc_setup.robot
index f48381b..be62af2 100644
--- a/templates/test_openbmc_setup.robot
+++ b/templates/test_openbmc_setup.robot
@@ -2,40 +2,30 @@
Documentation Test suite to verify if the Robot setup is ready for use.
Resource ../lib/resource.robot
-Resource ../lib/rest_client.robot
Resource ../lib/connection_client.robot
Resource ../lib/ipmi_client.robot
Resource ../lib/bmc_redfish_resource.robot
+Force Tags Openbmc_Setup
+
+*** Variables ****
+
+${REDFISH_SUPPORT_TRANS_STATE} ${1}
+
*** Test Cases ***
Test Redfish Setup
[Documentation] Verify Redfish works.
-
- Skip If ${REDFISH_SUPPORT_TRANS_STATE} == ${0}
- ... Skipping Redfish check, user explicitly requested for REST.
+ [Tags] Test_Redfish_Setup
Redfish.Login
Redfish.Get /redfish/v1/
Redfish.Logout
-Test REST Setup
- [Documentation] Verify REST works.
-
- Skip If ${REDFISH_SUPPORT_TRANS_STATE} == ${1}
- ... Skipping REST check, user explicitly requested for Redfish.
-
- # REST Connection and request.
- Initialize OpenBMC
- # Raw GET REST operation to verify session is established.
- ${resp}= GET On Session openbmc /xyz/openbmc_project/ expected_status=any
- Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
- Log To Console \n ${resp.json()}
-
-
Test SSH Setup
[Documentation] Verify SSH works.
+ [Tags] Test_SSH_Setup
${stdout} ${stderr} ${rc}= BMC Execute Command uname -a print_out=1 print_err=1
IF ${rc}
@@ -45,6 +35,7 @@
Test IPMI Setup
[Documentation] Verify Out-of-band works.
+ [Tags] Test_IPMI_Setup
${chassis_status}= Run IPMI Standard Command chassis status
Log To Console \n ${chassis_status}