summaryrefslogtreecommitdiffstats
path: root/test/csit/tests/policy/apex-pdp/apex-pdp-test.robot
blob: f1dea17d1da2e56ddc46a52c1128c67220e9bb09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
*** Settings ***
Library     Collections
Library     RequestsLibrary
Library     OperatingSystem
Library     json

*** Test Cases ***

Call Apex Policy
    Create Session   apexSession  http://${APEX_IP}:23324   max_retries=3
    ${data}=    Get Binary File     ${CURDIR}${/}data${/}event.json
    &{headers}=  Create Dictionary    Content-Type=application/json    Accept=application/json
    ${resp}=    Put Request    apexSession    /apex/FirstConsumer/EventIn    data=${data}   headers=${headers}
    Should Be Equal As Strings    ${resp.status_code}   200