Move CSIT to integration/csit repo
[integration/csit.git] / tests / policy / apex-pdp / apex-pdp-test.robot
1 *** Settings ***
2 Library     Collections
3 Library     RequestsLibrary
4 Library     OperatingSystem
5 Library     json
6
7 *** Test Cases ***
8
9 Call Apex Policy
10     Create Session   apexSession  http://${APEX_IP}:23324   max_retries=3
11     ${data}=    Get Binary File     ${CURDIR}${/}data${/}event.json
12     &{headers}=  Create Dictionary    Content-Type=application/json    Accept=application/json
13     ${resp}=    Put Request    apexSession    /apex/FirstConsumer/EventIn    data=${data}   headers=${headers}
14     Should Be Equal As Strings    ${resp.status_code}   200