System poweron readiness test

Resolves openbmc/openbmc-test-automation#76

Change-Id: I70058d4ef123b991c1a7aae4e5ccd6281924870c
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_basic_poweron.robot b/tests/test_basic_poweron.robot
index 8d7246f..25500d5 100644
--- a/tests/test_basic_poweron.robot
+++ b/tests/test_basic_poweron.robot
@@ -1,45 +1,14 @@
 *** Settings ***
 Documentation       This module will test basic power on use cases for CI
 
-Resource            ../lib/rest_client.robot
+Resource            ../lib/boot/boot_resource_master.robot
+
 Force Tags  chassisboot
 
-Test template       power on tests
-
-*** variables ***
-
-${POWER_CONTROL}    /org/openbmc/control/chassis0/
-${POWER_SETTING}    /org/openbmc/settings/host0
-${Retry}            1 min
-${Interval}         30s
-
 *** test cases ***
 
-Verify power on system states
+power on test
+    [Documentation]    Power OFF and power ON
 
-    # Template Action       Expected End State
-    poweroff                HOST_POWERED_OFF
-    poweron                 HOST_POWERED_ON
-    poweroff                HOST_POWERED_OFF
-
-*** keywords ***
-
-power on tests
-    [Arguments]   ${action}    ${endState}
-    Log To Console    ${\n}${action} the host
-
-    @{arglist}=   Create List
-    ${args}=      Create Dictionary   data=@{arglist}
-    ${resp}=      Call Method    ${POWER_CONTROL}    ${action}    data=${args}
-    should be equal as strings       ${resp.status_code}     ${HTTP_OK}
-    ${json} =     to json            ${resp.content}
-    should be equal as strings       ${json['status']}      ok
-
-    Wait Until Keyword Succeeds      ${Retry}    ${Interval}
-    ...    system power state   ${endState}
-
-
-system power state
-    [Arguments]       ${endState}
-    ${currState}=     Read Attribute   ${POWER_SETTING}   system_state
-    Should be equal   ${currState}     ${endState}
+    BMC Power Off
+    BMC Power On