summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-08-12 18:17:19 -0400
committerDR695H <dr695h@att.com>2019-08-15 10:18:21 -0400
commitafd5237ef7c1d46e2d8b3eebe890e20818424e18 (patch)
tree3e4d34e8e61d73bfd6dbfab32e627ca6ab79ed38 /robotframework-onap/ONAPLibrary/BaseSDCKeywords.py
parent9fef31d201bead81d118ad9d9db54d4a9292d0c0 (diff)
initial redo of the requests keywords for client certs
Issue-ID: TEST-184 Change-Id: Ie35e9c64180bad574ba3e4fc77f8418e4ab27528 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/ONAPLibrary/BaseSDCKeywords.py')
-rw-r--r--robotframework-onap/ONAPLibrary/BaseSDCKeywords.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py b/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py
index 6f71078..ea97f94 100644
--- a/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py
+++ b/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py
@@ -31,25 +31,29 @@ class BaseSDCKeywords(object):
@keyword
def run_get_request(self, endpoint, data_path, user, accept="application/json", auth=None):
"""Runs an SDC get request"""
- return self.reqs.get_request("sdc", endpoint, data_path, sdc_user=user, accept=accept, auth=auth)
+ return self.reqs.get_request(alias="sdc", endpoint=endpoint, data_path=data_path, sdc_user=user, accept=accept,
+ auth=auth)
@keyword
def run_post_request(self, endpoint, data_path, data, user, accept="application/json", auth=None):
"""Runs an SDC post request"""
- return self.reqs.post_request("sdc", endpoint, data_path, data, user, files=None, accept=accept, auth=auth)
+ return self.reqs.post_request(alias="sdc", endpoint=endpoint, data_path=data_path, data=data, sdc_user=user,
+ accept=accept, auth=auth)
@keyword
def run_post_files_request(self, endpoint, data_path, files, user, accept="application/json", auth=None):
"""Runs an SDC post files request"""
- return self.reqs.post_request("sdc", endpoint, data_path, None, user, files=files, accept=accept,
- content_type="multipart/form-data", auth=auth)
+ return self.reqs.post_request(alias="sdc", endpoint=endpoint, data_path=data_path, sdc_user=user, files=files,
+ accept=accept, content_type="multipart/form-data", auth=auth)
@keyword
def run_put_request(self, endpoint, data_path, data, user, accept="application/json", auth=None):
"""Runs an SDC post request"""
- return self.reqs.put_request("sdc", endpoint, data_path, data, sdc_user=user, accept=accept, auth=auth)
+ return self.reqs.put_request(alias="sdc", endpoint=endpoint, data_path=data_path, data=data, sdc_user=user,
+ accept=accept, auth=auth)
@keyword
def run_delete_request(self, endpoint, data_path, data, user, accept="application/json", auth=None):
"""Runs an SDC delete request"""
- return self.reqs.delete_request("sdc", endpoint, data_path, data, sdc_user=user, accept=accept, auth=auth)
+ return self.reqs.delete_request(alias="sdc", endpoint=endpoint, data_path=data_path, data=data, sdc_user=user,
+ accept=accept, auth=auth)