summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/SNIROKeywords.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/SNIROKeywords.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/SNIROKeywords.py')
-rw-r--r--robotframework-onap/ONAPLibrary/SNIROKeywords.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/robotframework-onap/ONAPLibrary/SNIROKeywords.py b/robotframework-onap/ONAPLibrary/SNIROKeywords.py
index 34e371d..3a181dd 100644
--- a/robotframework-onap/ONAPLibrary/SNIROKeywords.py
+++ b/robotframework-onap/ONAPLibrary/SNIROKeywords.py
@@ -35,14 +35,15 @@ class SNIROKeywords(object):
@keyword
def run_sniro_get_request(self, endpoint, data_path, accept="application/json", auth=None):
"""Runs OOF-SNIRO Get request"""
- resp = self.reqs.get_request("oof-sniro", endpoint, data_path, accept, auth)
+ resp = self.reqs.get_request(alias="oof-sniro", endpoint=endpoint, data_path=data_path, accept=accept,
+ auth=auth)
self.builtin.should_be_equal_as_strings(resp.status_code, "200")
return resp
@keyword
def reset_sniro(self, endpoint):
logger.debug('Clearing SNIRO data')
- resp = self.reqs.post_request("oof-sniro", endpoint, '/reset', None)
+ resp = self.reqs.post_request(alias="oof-sniro", endpoint=endpoint, data_path='/reset')
self.builtin.should_be_equal_as_strings(resp.status_code, "200", 'Clearing SNIRO date failed.')
@keyword
@@ -60,6 +61,6 @@ class SNIROKeywords(object):
base64_sniro_data = self.base64.base64_encode(sniro_data)
replace_dict = {'base64_sniro_data': base64_sniro_data}
sniro_request = self.templating.apply_template("sniro", template_sniro_request, replace_dict)
- resp = self.reqs.post_request("oof-sniro", endpoint, '/', sniro_request)
+ resp = self.reqs.post_request(alias="oof-sniro", endpoint=endpoint, data_path='/', data=sniro_request)
self.builtin.should_be_equal_as_strings(resp.status_code, "200", 'SNIRO preloading failed.')
return True