summaryrefslogtreecommitdiffstats
path: root/robotframework-onap/ONAPLibrary/RequestSOKeywords.py
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-07-09 18:10:15 -0400
committerDR695H <dr695h@att.com>2019-07-09 18:10:15 -0400
commit843119faf0b3fdce6c334f616a0cc66cfab69d1a (patch)
tree35ee93fe562be33eebbed645b3364abbe7eeafb9 /robotframework-onap/ONAPLibrary/RequestSOKeywords.py
parent3a8c94568d9fb3c38329a19f11f08be48fc1eadf (diff)
add string templating to new way
Change-Id: I286a616eb364f5506a52e4a33d03e3e8371f9535 Issue-ID: TEST-173 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/ONAPLibrary/RequestSOKeywords.py')
-rw-r--r--robotframework-onap/ONAPLibrary/RequestSOKeywords.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/robotframework-onap/ONAPLibrary/RequestSOKeywords.py b/robotframework-onap/ONAPLibrary/RequestSOKeywords.py
index fa32795..f463883 100644
--- a/robotframework-onap/ONAPLibrary/RequestSOKeywords.py
+++ b/robotframework-onap/ONAPLibrary/RequestSOKeywords.py
@@ -42,12 +42,13 @@ class RequestSOKeywords(object):
logger.info(resp.json()['request']['requestStatus']['requestState'])
if resp.json()['request']['requestStatus']['requestState'] in complete_states:
logger.info("Received response from so " + resp.text)
- return resp
+ return True, resp
else:
self.builtin.sleep(interval, "Response from SO is not in requested status")
+ return False, None
@keyword
- def run_create_request(self, endpoint, data_path, data, auth):
+ 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.base_keywords.post_request(endpoint, data_path, data, auth=auth)
logger.info("Creation request submitted to SO, got response")