diff options
author | Zuul <zuul@review.opendev.org> | 2022-06-01 15:54:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-06-01 15:54:22 +0000 |
commit | 3308ea0abf5f454a5bdfeed5a032bd1ff529ddad (patch) | |
tree | 4ce95d01ef08bb070057a17697a1978aa323bcf2 | |
parent | 15ff173194c8ff2b0d00ed1df499fe1512eae0e7 (diff) | |
parent | 7f4779089538b1687c312024fdae8cf767a012ae (diff) | |
download | tempest-3308ea0abf5f454a5bdfeed5a032bd1ff529ddad.tar.gz |
Merge "tempurl: Deprecate sha1 signatures"
-rw-r--r-- | tempest/api/object_storage/test_object_temp_url.py | 2 | ||||
-rw-r--r-- | tempest/api/object_storage/test_object_temp_url_negative.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tempest/api/object_storage/test_object_temp_url.py b/tempest/api/object_storage/test_object_temp_url.py index e75e22a94..4ca7412bd 100644 --- a/tempest/api/object_storage/test_object_temp_url.py +++ b/tempest/api/object_storage/test_object_temp_url.py @@ -78,7 +78,7 @@ class ObjectTempUrlTest(base.BaseObjectTest): hmac_body = '%s\n%s\n%s' % (method, expires, path) sig = hmac.new( - key.encode(), hmac_body.encode(), hashlib.sha1 + key.encode(), hmac_body.encode(), hashlib.sha256 ).hexdigest() url = "%s/%s?temp_url_sig=%s&temp_url_expires=%s" % (container, diff --git a/tempest/api/object_storage/test_object_temp_url_negative.py b/tempest/api/object_storage/test_object_temp_url_negative.py index 4ad8428ba..e5f4cf23d 100644 --- a/tempest/api/object_storage/test_object_temp_url_negative.py +++ b/tempest/api/object_storage/test_object_temp_url_negative.py @@ -83,7 +83,7 @@ class ObjectTempUrlNegativeTest(base.BaseObjectTest): hmac_body = '%s\n%s\n%s' % (method, expires, path) sig = hmac.new( - key.encode(), hmac_body.encode(), hashlib.sha1 + key.encode(), hmac_body.encode(), hashlib.sha256 ).hexdigest() url = "%s/%s?temp_url_sig=%s&temp_url_expires=%s" % (container, |