Update Robot Framework format - step 4
[integration/test.git] / csit / suites / centinel / basic / 030_Configuration.robot
1 *** Settings ***
2 Library             RequestsLibrary
3 Library             OperatingSystem
4 Resource            ../../../libraries/KarafKeywords.robot
5 Variables           ../../../variables/Variables.py
6 Resource            ../../../libraries/Utils.robot
7
8 Suite Setup         Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
9 Suite Teardown      Delete All Sessions
10
11
12 *** Variables ***
13 ${SET_CONFIGURATION}    ${CURDIR}/../../../variables/centinel/set_configuration.json
14
15
16 *** Test Cases ***
17 Set Configurations
18     ${body}    OperatingSystem.Get File    ${SET_CONFIGURATION}
19     ${resp}    RequestsLibrary.Post Request    session    ${SET_CONFIGURATION_URI}    ${body}
20     Log    ${resp.content}
21     Should Be Equal As Strings    ${resp.status_code}    200
22
23 Get Configurations
24     ${resp}    RequestsLibrary.Get Request    session    ${GET_CONFIGURATION_URI}
25     Log    ${resp.content}
26     Should Be Equal As Strings    ${resp.status_code}    200