Fix route-key argument in ibgp test
[integration/test.git] / csit / suites / centinel / basic / 070_Subscribe.robot
1 *** Settings ***
2 Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
3 Suite Teardown    Delete All Sessions
4 Library           RequestsLibrary
5 Library           Collections
6 Library           json
7 Library           String
8 Library           OperatingSystem
9 Variables         ../../../variables/Variables.py
10
11 *** Variables ***
12 ${SET_SUBSCRIBEUSER_JSON}    ${CURDIR}/../../../variables/centinel/set_subscribeUser.json
13
14 *** Test Cases ***
15 Set SubscribeUser
16     ${body}    OperatingSystem.Get File    ${SET_SUBSCRIBEUSER_JSON}
17     ${resp}    RequestsLibrary.Post Request    session    ${SET_SUBSCRIBEUSER}    ${body}
18     Should Be Equal As Strings    ${resp.status_code}    200
19
20 Get Subscription
21     ${resp}    RequestsLibrary.Get Request    session    ${SUBSCRIPTION}
22     Should Be Equal As Strings    ${resp.status_code}    200
23
24 Delete Subscription
25     ${delresp}    RequestsLibrary.Delete Request    session    ${SUBSCRIPTION}
26     Should Be Equal As Strings    ${delresp.status_code}    200