From 4648e856a8faf2517f2b2335ca6a4ba8d8a20fe5 Mon Sep 17 00:00:00 2001 From: DR695H Date: Thu, 11 Jul 2019 08:52:41 -0400 Subject: fix md5 use to call correct object Issue-ID: TEST-173 Change-Id: Ie47e4f5602a2e3e6680410a4977f3f9f78b9689a Signed-off-by: DR695H --- robotframework-onap/ONAPLibrary/BaseSDCKeywords.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py b/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py index 89893cc..cc09a5b 100644 --- a/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py +++ b/robotframework-onap/ONAPLibrary/BaseSDCKeywords.py @@ -83,7 +83,8 @@ class BaseSDCKeywords(object): """Runs an SDC post request""" logger.info("Creating session" + endpoint) md5 = hashlib.md5() - md5checksum = Base64Keywords().base64_encode(md5.update(data).hexdigest()) + md5.update(data) + md5checksum = Base64Keywords().base64_encode(md5.hexdigest()) RequestsLibrary().create_session("sdc", endpoint, auth=auth) headers = self.create_headers(user, accept=accept, content_type=content_type, md5=md5checksum) resp = RequestsLibrary().post_request("sdc", data_path, files=files, data=data, headers=headers) -- cgit 1.2.3-korg