diff options
author | DR695H <dr695h@att.com> | 2019-07-11 08:52:41 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-07-11 08:52:41 -0400 |
commit | 4648e856a8faf2517f2b2335ca6a4ba8d8a20fe5 (patch) | |
tree | 2fbfa9714ef1a65a26d83863b4e7e7955ed29396 /robotframework-onap | |
parent | e197f3e8115aae13a921e5502936c1aced974617 (diff) |
fix md5 use to call correct object
Issue-ID: TEST-173
Change-Id: Ie47e4f5602a2e3e6680410a4977f3f9f78b9689a
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap')
-rw-r--r-- | robotframework-onap/ONAPLibrary/BaseSDCKeywords.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |