blob: 0810ec35784e6050066b0516a7f65ae94319e32d [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
10 Open Connection ${PDU_IP}
11 ${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}