updated packetcable csit test for changed api
[integration/test.git] / csit / libraries / PacketcableVersion.robot
1 *** Settings ***
2 Documentation     This setup variable for Packetcable based on ODL version
3
4 *** Variables ***
5 ${ODL_VERSION}    master    # defaults to latest version in the master branch
6 ${ODLREST_CCAPS}    /restconf/config/packetcable:ccaps
7 ${CCAP_TOKEN}     ccap
8 ${PACKETCABLE_RESOURCE_DIR}    ${CURDIR}/../variables/packetcable/${ODL_VERSION}
9
10 *** Keywords ***
11 Init Variables
12     Run Keyword If    "${ODL_VERSION}" == "lithium"    Init Variables Lithium
13     log    ${ODL_VERSION}
14     log    ${ODLREST_CCAPS}
15     log    ${CCAP_TOKEN}
16
17 Init Variables Lithium
18     Set Suite Variable    ${ODLREST_CCAPS}    /restconf/config/packetcable:ccap
19     Set Suite Variable    ${CCAP_TOKEN}    ccaps
20
21 Create Session And Init Variables
22     Init Variables
23     Create Session    ODLSession    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}