fix md5 use to call correct object 55/91255/1
authorDR695H <dr695h@att.com>
Thu, 11 Jul 2019 12:52:41 +0000 (08:52 -0400)
committerDR695H <dr695h@att.com>
Thu, 11 Jul 2019 12:52:41 +0000 (08:52 -0400)
Issue-ID: TEST-173
Change-Id: Ie47e4f5602a2e3e6680410a4977f3f9f78b9689a
Signed-off-by: DR695H <dr695h@att.com>
robotframework-onap/ONAPLibrary/BaseSDCKeywords.py

index 89893cc..cc09a5b 100644 (file)
@@ -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)