"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/identity/backends/test_ldap_common.py" between
keystone-16.0.1.tar.gz and keystone-16.0.2.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Train" series (maintained release).

test_ldap_common.py  (keystone-16.0.1):test_ldap_common.py  (keystone-16.0.2)
skipping to change at line 515 skipping to change at line 515
'cn=dummy,dc=example,dc=com', 'cn=dummy,dc=example,dc=com',
{ {
'user_id': [user_id], 'user_id': [user_id],
'user_name': [user_name] 'user_name': [user_name]
} }
), ] ), ]
py_result = common_ldap.convert_ldap_result(result) py_result = common_ldap.convert_ldap_result(result)
# The user name should still be a string value. # The user name should still be a string value.
self.assertEqual(user_name, py_result[0][1]['user_name'][0]) self.assertEqual(user_name, py_result[0][1]['user_name'][0])
def test_user_id_attribute_is_uuid_in_byte_form(self):
results = [(
'cn=alice,dc=example,dc=com',
{
'cn': [b'cn=alice'],
'objectGUID': [b'\xdd\xd8Rt\xee]bA\x8e(\xe39\x0b\xe1\xf8\xe8'],
'email': [uuid.uuid4().hex],
'sn': [uuid.uuid4().hex]
}
)]
py_result = common_ldap.convert_ldap_result(results)
exp_object_guid = '7452d8dd-5dee-4162-8e28-e3390be1f8e8'
self.assertEqual(exp_object_guid, py_result[0][1]['objectGUID'][0])
class LDAPFilterQueryCompositionTest(unit.BaseTestCase): class LDAPFilterQueryCompositionTest(unit.BaseTestCase):
"""These test cases test LDAP filter generation.""" """These test cases test LDAP filter generation."""
def setUp(self): def setUp(self):
super(LDAPFilterQueryCompositionTest, self).setUp() super(LDAPFilterQueryCompositionTest, self).setUp()
self.config_fixture = self.useFixture(config_fixture.Config(CONF)) self.config_fixture = self.useFixture(config_fixture.Config(CONF))
self.base_ldap = common_ldap.BaseLdap(self.config_fixture.conf) self.base_ldap = common_ldap.BaseLdap(self.config_fixture.conf)
# The tests need an attribute mapping to use. # The tests need an attribute mapping to use.
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)