823fb241a52ed61ca4e2921ef3b7c1f3541fa125
[integration/test.git] / csit / suites / centinel / basic / 040_Stream.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 Resource          ../../../libraries/KarafKeywords.robot
10 Variables         ../../../variables/Variables.py
11
12 *** Variables ***
13 ${SET_STREAMRECORD_JSON}    ${CURDIR}/../../../variables/centinel/set_streamRecord.json
14
15 *** Test Cases ***
16 Set StreamRecord
17     ${body}    OperatingSystem.Get File    ${SET_STREAMRECORD_JSON}
18     ${resp}    RequestsLibrary.Post Request    session    ${SET_STREAMRECORD}    ${body}
19     Log    ${resp.content}
20     Should Be Equal As Strings    ${resp.status_code}    200
21
22 Get StreamRecordConfig
23     ${resp}    RequestsLibrary.Get Request    session    ${STREAMRECORD_CONFIG}
24     Log    ${resp.content}
25     Should Be Equal As Strings    ${resp.status_code}    200
26
27 Delete StreamRecord
28     ${delresp}    RequestsLibrary.Delete Request    session    ${STREAMRECORD_CONFIG}
29     Should Be Equal As Strings    ${delresp.status_code}    200