From 27daa1a7268eee676d67a3e63a962161658aaf43 Mon Sep 17 00:00:00 2001 From: DR695H Date: Mon, 22 Jul 2019 18:20:48 -0400 Subject: correct the order of parameters Issue-ID: TEST-177 Change-Id: I57a6c890379f5bb83160ffe827d51c31e517b9fd Signed-off-by: DR695H --- robotframework-onap/ONAPLibrary/BaseSDNCKeywords.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'robotframework-onap/ONAPLibrary/BaseSDNCKeywords.py') diff --git a/robotframework-onap/ONAPLibrary/BaseSDNCKeywords.py b/robotframework-onap/ONAPLibrary/BaseSDNCKeywords.py index f335aea..14970ff 100644 --- a/robotframework-onap/ONAPLibrary/BaseSDNCKeywords.py +++ b/robotframework-onap/ONAPLibrary/BaseSDNCKeywords.py @@ -11,8 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from RequestsLibrary import RequestsLibrary -from robot.api import logger + from robot.api.deco import keyword from robot.libraries.BuiltIn import BuiltIn @@ -31,16 +30,16 @@ class BaseSDNCKeywords(object): @keyword def run_get_request(self, endpoint, data_path, accept="application/json", auth=None): """Runs an SDNC get request""" - resp = self.reqs.get_request("sdnc", endpoint, data_path, accept, auth) + resp = self.reqs.get_request("sdnc", endpoint, data_path, sdc_user=None, accept=accept, auth=auth) self.builtin.should_be_equal_as_strings(resp.status_code, "200") return resp @keyword def run_post_request(self, endpoint, data_path, data, accept="application/json", auth=None): """Runs an SDNC post request""" - return self.reqs.post_request("sdnc", endpoint, data_path, data, accept, auth) + return self.reqs.post_request("sdnc", endpoint, data_path, data, sdc_user=None, accept=accept, auth=auth) @keyword def run_put_request(self, endpoint, data_path, data, accept="application/json", auth=None): """Runs an SDNC post request""" - return self.reqs.put_request("sdnc", endpoint, data_path, data, accept, auth) \ No newline at end of file + return self.reqs.put_request("sdnc", endpoint, data_path, data, sdc_user=None, accept=accept, auth=auth) -- cgit 1.2.3-korg