From 843119faf0b3fdce6c334f616a0cc66cfab69d1a Mon Sep 17 00:00:00 2001 From: DR695H Date: Tue, 9 Jul 2019 18:10:15 -0400 Subject: add string templating to new way Change-Id: I286a616eb364f5506a52e4a33d03e3e8371f9535 Issue-ID: TEST-173 Signed-off-by: DR695H --- robotframework-onap/ONAPLibrary/RequestSOKeywords.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'robotframework-onap/ONAPLibrary/RequestSOKeywords.py') 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") -- cgit