summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/BaseSOKeywords.py
diff options
context:
space:
mode:
Diffstat (limited to 'robotframework-onap/ONAPLibrary/BaseSOKeywords.py')
-rw-r--r--robotframework-onap/ONAPLibrary/BaseSOKeywords.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/robotframework-onap/ONAPLibrary/BaseSOKeywords.py b/robotframework-onap/ONAPLibrary/BaseSOKeywords.py
index 4e28476..d86631b 100644
--- a/robotframework-onap/ONAPLibrary/BaseSOKeywords.py
+++ b/robotframework-onap/ONAPLibrary/BaseSOKeywords.py
@@ -43,3 +43,8 @@ class BaseSOKeywords(object):
def run_put_request(self, endpoint, data_path, data, accept="application/json", auth=None):
"""Runs an SO post request"""
return self.reqs.put_request("so", endpoint, data_path, data, accept=accept, auth=auth)
+
+ @keyword
+ def run_delete_request(self, endpoint, data_path, data, accept="application/json", auth=None):
+ """Runs an SO delete request"""
+ return self.reqs.delete_request("so", endpoint, data_path, data=data, accept=accept, auth=auth)