diff options
author | econwar <conor.ward@ericsson.com> | 2018-08-08 16:46:51 +0000 |
---|---|---|
committer | econwar <conor.ward@ericsson.com> | 2018-08-08 16:46:51 +0000 |
commit | 81708b8b4db473e7dd9738fce13844ef48d7fcb7 (patch) | |
tree | 88aa63d159c2bb0e0d298611825e98589f26199b /test | |
parent | 51166a34898aa06e67339d611397ecd83aa2ffbf (diff) |
Add Delete Subscription Test Case
Change-Id: I2ff9e6b4d616ad9f782241c4d964a001927b2165
Signed-off-by: Conor Ward <conor.ward@ericsson.com>
Issue-ID: DMAAP-68
Diffstat (limited to 'test')
-rwxr-xr-x | test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot b/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot index ea2754a22..c966c6985 100755 --- a/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot +++ b/test/csit/tests/dmaap-datarouter/dr-suite/dr-suite.robot @@ -62,6 +62,14 @@ Run Update Feed Should Contain ${resp.text} "UPDATED-CSIT_Test" log 'JSON Response Code:'${resp} +Run Delete Subscription + [Documentation] Delete Subscription + [Timeout] 1 minute + ${resp}= DeleteCall ${TARGET_URL_SUBSCRIPTION} sg481n + log ${resp.text} + Should Be Equal As Strings ${resp.status_code} 204 + log 'JSON Response Code:'${resp} + *** Keywords *** PostCall [Arguments] ${url} ${data} ${content_type} ${user} @@ -80,3 +88,9 @@ GetCall ${headers}= Create Dictionary X-ATT-DR-ON-BEHALF-OF=${user} Content-Type=${content_type} ${resp}= Evaluate requests.get('${url}', headers=${headers},verify=False) requests [Return] ${resp} + +DeleteCall + [Arguments] ${url} ${user} + ${headers}= Create Dictionary X-ATT-DR-ON-BEHALF-OF=${user} + ${resp}= Evaluate requests.delete('${url}', headers=${headers},verify=False) requests + [Return] ${resp} |