Closed
Description
Issue Description
Paged results test module has some code outside of the test functions and fixtures:
It gets interpreted by pytest on test collection. These tests might be even skipped, but the code to change the hostname would still be executed. This leads to a situation, where certain test cases fail with:
E ldap.SERVER_DOWN: {'result': -1, 'desc': "Can't contact LDAP server", 'ctrls': [], 'info': 'TLS: hostname does not match subjectAltName in peer certificate'}
Code like this should be in a fixture. But in this case I don't think we need to change the hostname at all.