Enable py3 for credential tests

Enable python3 testing for credential tests.

Change-Id: I8827b51f17ff547a8ab734a9f8fcf7b30d1cbddf
This commit is contained in:
Morgan Fainberg 2016-05-18 14:11:40 -07:00
parent 21b98dca0a
commit e518535bd3
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