summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2019-09-05 14:47:56 +0200
committerKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2019-09-05 14:48:21 +0200
commite384acfeca8b6a50ca5c75f9bba1dfffb5e6c8d4 (patch)
tree1085055cad38d0a4927ed37e97f5be4ebb6dfcd3
parentb2e7c2de9f8333c232f6daf89ab69850133db48c (diff)
ROBOT test cases improvements for PnP PNF in El Alto release
Issue-ID: INT-1179 Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Change-Id: Ie359abedc6772e546962e9bf8d07cf67e3be23ae
-rw-r--r--robotframework-onap/ONAPLibrary/CloudConfigSOKeywords.py4
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)$")