Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 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 |