Merge "Enable py3 for credential tests"

This commit is contained in:
Jenkins 2016-05-19 08:42:06 +00:00 committed by Gerrit Code Review
commit 77cc64df7b
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,8 @@ class CredentialV3(controller.V3Controller):
raise exception.ValidationError(attribute='access',
target='blob')
ret_ref = ref.copy()
ret_ref['id'] = hashlib.sha256(blob['access']).hexdigest()
ret_ref['id'] = hashlib.sha256(
blob['access'].encode('utf8')).hexdigest()
# Update the blob with the trust_id, so credentials created
# with a trust scoped token will result in trust scoped
# tokens when authentication via ec2tokens happens

View File

@ -1,4 +1,3 @@
keystone.tests.unit.test_v3_auth
keystone.tests.unit.test_v3_credential
keystone.tests.unit.test_v3_oauth1
keystone.tests.unit.token.test_fernet_provider