blob: ff71089b2506c95803a4f92d17c6e60a83347f7e [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
2Documentation synaccess PDU library
3
4Resource ../../lib/pdu/pdu.robot
5Library RequestsLibrary.RequestsKeywords
6
7*** Keywords ***
8Connect and Login
9 Validate Prereq
Michael Walshe21c3642017-03-21 14:52:21 -050010 SSHLibrary.Open Connection ${PDU_IP}
Chris Austenb29d2e82016-06-07 12:25:35 -050011 ${auth}= Create List ${PDU_USERNAME} ${PDU_PASSWORD}
12 Create Session pdu http://${PDU_IP} auth=${auth}
13
14Power Cycle
15 Connect and Login
16 ${ret}= Get Request pdu /cmd.cgi?$A4 ${PDU_SLOT_NO}
Steven Sombarac831df2018-01-18 07:28:52 -060017 ${error_message}= Catenate Power cycle of slot ${PDU_SLOT_NO} failed.
18 ... PDU returned RC=${ret}.
19 Should Be Equal As Strings ${ret} ${HTTP_OK} msg=${error_message}