summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/RequestSOKeywords.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/RequestSOKeywords.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/RequestSOKeywords.py')
-rw-r--r--robotframework-onap/ONAPLibrary/RequestSOKeywords.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/robotframework-onap/ONAPLibrary/RequestSOKeywords.py b/robotframework-onap/ONAPLibrary/RequestSOKeywords.py
index 9dd0977..671a306 100644
--- a/robotframework-onap/ONAPLibrary/RequestSOKeywords.py
+++ b/robotframework-onap/ONAPLibrary/RequestSOKeywords.py
@@ -37,7 +37,7 @@ class RequestSOKeywords(object):
complete_states = ["COMPLETE"]
# do this until it is done
for i in range(tries):
- resp = self.reqs.get_request("so", endpoint, data_path, auth=auth)
+ resp = self.reqs.get_request(alias="so", endpoint=endpoint, data_path=data_path, auth=auth)
logger.info(resp.json()['request']['requestStatus']['requestState'])
if resp.json()['request']['requestStatus']['requestState'] in fail_states:
self.builtin.fail("Received failure response from so " + resp.text)
@@ -51,7 +51,7 @@ class RequestSOKeywords(object):
@keyword
def run_create_request(self, endpoint, data_path, data, auth=None):
"""Runs an SO create request and returns the request id and instance id."""
- response = self.reqs.post_request("so", endpoint, data_path, data, auth=auth)
+ response = self.reqs.post_request(alias="so", endpoint=endpoint, data_path=data_path, data=data, auth=auth)
logger.info("Creation request submitted to SO, got response")
req_id = response.get('requestReferences', {}).get('requestId', '')