Enables token_data_helper tests for Python3
bp python3 Change-Id: Idd1b587450b01ac00449df92a446f67ad8f37122
This commit is contained in:
parent
8f15724dc7
commit
7e0c6a9e2c
@ -28,7 +28,8 @@ class TestTokenDataHelper(unit.TestCase):
|
||||
|
||||
def test_v3_token_data_helper_populate_audit_info_string(self):
|
||||
token_data = {}
|
||||
audit_info = base64.urlsafe_b64encode(uuid.uuid4().bytes)[:-2]
|
||||
audit_info_bytes = base64.urlsafe_b64encode(uuid.uuid4().bytes)[:-2]
|
||||
audit_info = audit_info_bytes.decode('utf-8')
|
||||
self.v3_data_helper._populate_audit_info(token_data, audit_info)
|
||||
self.assertIn(audit_info, token_data['audit_ids'])
|
||||
self.assertThat(token_data['audit_ids'], matchers.HasLength(2))
|
||||
|
@ -24,4 +24,3 @@ keystone.tests.unit.test_v3_resource
|
||||
keystone.tests.unit.test_v3_trust
|
||||
keystone.tests.unit.test_versions
|
||||
keystone.tests.unit.token.test_fernet_provider
|
||||
keystone.tests.unit.token.test_token_data_helper
|
||||
|
Loading…
x
Reference in New Issue
Block a user