blob: aa1b21698d85c546d7a0d596ec3263fa36862f6b [file] [log] [blame]
Chris Austenb29d2e82016-06-07 12:25:35 -05001*** Settings ***
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -05002Documentation Generic Protocol Distribution Unit (PDU) library
Chris Austenb29d2e82016-06-07 12:25:35 -05003
4Resource ../../lib/resource.txt
5
6*** Keywords ***
7Validate Prereq
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -05008 [Documentation] Validate prerequisites for PDU.
Chris Austenb29d2e82016-06-07 12:25:35 -05009 ${PDU_VAR_LIST} = Create List PDU_TYPE PDU_IP PDU_USERNAME PDU_PASSWORD PDU_SLOT_NO
10 : FOR ${PDU_VAR} IN @{PDU_VAR_LIST}
11 \ Should Not Be Empty ${${PDU_VAR}} msg=Unable to find variable ${PDU_VAR}
12
13PDU Power Cycle
Joy Onyerikwuf4a807b2018-06-20 08:43:54 -050014 [Documentation] Perform PDU power cycle.
Chris Austenb29d2e82016-06-07 12:25:35 -050015 Validate Prereq
16 Import Resource ${CURDIR}/../../lib/pdu/${PDU_TYPE}.robot
17 Power Cycle