Fix bmp_basic test on neon
[integration/test.git] / csit / suites / centinel / basic / 030_Configuration.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           OperatingSystem
6 Resource          ../../../libraries/KarafKeywords.robot
7 Variables         ../../../variables/Variables.py
8 Resource          ../../../libraries/Utils.robot
9
10 *** Variables ***
11 ${SET_CONFIGURATION}    ${CURDIR}/../../../variables/centinel/set_configuration.json
12
13 *** Test Cases ***
14 Set Configurations
15     ${body}    OperatingSystem.Get File    ${SET_CONFIGURATION}
16     ${resp}    RequestsLibrary.Post Request    session    ${SET_CONFIGURATION_URI}    ${body}
17     Log    ${resp.content}
18     Should Be Equal As Strings    ${resp.status_code}    200
19
20 Get Configurations
21     ${resp}    RequestsLibrary.Get Request    session    ${GET_CONFIGURATION_URI}
22     Log    ${resp.content}
23     Should Be Equal As Strings    ${resp.status_code}    200