diff options
Diffstat (limited to 'robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py')
-rw-r--r-- | robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py b/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py index fe487a2..95d68c7 100644 --- a/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py +++ b/robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py @@ -44,11 +44,11 @@ class CloudConfigSOKeywords(object): @keyword def upsert_cloud_configuration(self, endpoint, data_path, templates_folder, template, arguments, auth=None): """Creates a cloud configuration in SO, or if it exists updates it""" - get_resp = self.get_cloud_configuration(endpoint, data_path, arguments['site_name']) + get_resp = self.get_cloud_configuration(endpoint, data_path, arguments['site_name'], auth=auth) self.templating.create_environment("so", templates_folder) data = self.templating.apply_template("so", template, arguments) if get_resp.status_code == 404: resp = self.reqs.post_request(alias="so", endpoint=endpoint, data_path=data_path, data=data, auth=auth) else: - resp = self.reqs.put_request(alias="so", endpoint=endpoint, data_path=data_path, data=data, auth=auth) + resp = self.reqs.put_request(alias="so", endpoint=endpoint, data_path=data_path + "/" + arguments['site_name'], data=data, auth=auth) self.builtin.should_match_regexp(str(resp.status_code), "^(201|200)$") |