#6642 Py3: test_serverroles: use ldap2/ldapclient instead of MockLDAP
Closed: fixed 6 years ago Opened 7 years ago by mbasti.

Tests are failing with Unicode/bytes errors. Tests use shared data but MockLDAP expects bytes as LDAP values, commands requires unicodes, ldap2 shouldn't care. Data type should be used consistently across tests.

MockLDAP in test_serverroles is actually not so "mock" as it is connected to real LDAP, thus it can be replaced by ldap2/ldapclient which is able to work with unicode.


mass moving python3 tickets to FreeIPA 4.6 which should be smaller release targeted mainly on python3 porting.

Metadata Update from @mbasti:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.6

7 years ago

The MockLDAP was thrown out in https://pagure.io/freeipa/c/4fa29a33765cb5d6ce86846f37766e5d3322f25f during work on https://pagure.io/freeipa/issue/6977. If the change makes Py3 tests pass we can then close this issue.

Metadata Update from @mbabinsk:
- Issue close_status updated to: None

6 years ago

Metadata Update from @mbasti:
- Issue tagged with: py3

6 years ago

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata