diff options
author | HOCKLA <ah999m@att.com> | 2019-02-20 09:32:19 -0600 |
---|---|---|
committer | HOCKLA <ah999m@att.com> | 2019-02-21 13:18:04 -0600 |
commit | 3e332f4f600e684764e6436c37609a7d7fb27b78 (patch) | |
tree | f2063f2c27d64c51c8bf4a12cfdc3f5a53db0a7a /tests/policy/suite1/policy_interface.robot | |
parent | 4e906ce1017ccef4046ee5295671c1e7f0357b52 (diff) |
Added CSIT support for listPolicy API
Issue-ID: POLICY-1488
Change-Id: I27a504ad3c4e8835212d3ab05e48712636b7f402
Signed-off-by: HOCKLA <ah999m@att.com>
Diffstat (limited to 'tests/policy/suite1/policy_interface.robot')
-rw-r--r-- | tests/policy/suite1/policy_interface.robot | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/policy/suite1/policy_interface.robot b/tests/policy/suite1/policy_interface.robot index 79178708..745f7817 100644 --- a/tests/policy/suite1/policy_interface.robot +++ b/tests/policy/suite1/policy_interface.robot @@ -38,7 +38,17 @@ Run Policy Put Request ${resp}= Put Request policy ${data_path} data=${data} headers=${headers} Log Received response from policy ${resp.text} [Return] ${resp} - + +Run Policy Post Request + [Documentation] Runs Policy Post request + [Arguments] ${data_path} ${data} + Log Creating session ${GLOBAL_POLICY_SERVER_URL} + ${session}= Create Session policy ${GLOBAL_POLICY_SERVER_URL} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic ${GLOBAL_POLICY_AUTH} ClientAuth=${GLOBAL_POLICY_CLIENTAUTH} Environment=TEST + ${resp}= Post Request policy ${data_path} data=${data} headers=${headers} + Log Received response from policy ${resp.text} + [Return] ${resp} + Run Policy Delete Request [Documentation] Runs Policy Delete request [Arguments] ${data_path} ${data} @@ -57,4 +67,4 @@ Run Policy Get Configs Request ${headers}= Create Dictionary Accept=application/json Content-Type=application/json Authorization=Basic ${GLOBAL_POLICY_AUTH} ClientAuth=${GLOBAL_POLICY_CLIENTAUTH} ${resp}= Post Request policy ${data_path} data=${data} headers=${headers} Log Received response from policy ${resp.text} - [Return] ${resp}
\ No newline at end of file + [Return] ${resp} |