class documentation

Undocumented

Method createServer Create a server for each test.
Method test_bind When binding to the server an `LDAPBindResponse` with a successful result code.is written to the transport.
Method test_cannot_connect_to_proxied_server_no_pending_requests When making a request and the proxy cannot connect to the proxied server, the connection is terminated.
Method test_cannot_connect_to_proxied_server_pending_requests When making a request and the proxy cannot connect to the proxied server, pending BIND and startTLS requests are replied to and the connection is closed.
Method test_health_check_closes_connection_to_proxied_server When the client disconnects immediately and before the connection to the proxied server has been established, the proxy terminates the connection to the proxied server. Messages sent by the client are discarded.
Method test_intercepted_search_request When performing an LDAP search against the server; the requests are intercepted and custom responses are written to the transport.
Method test_intercepted_search_response When performing an LDAP search against the server; the search results are intercepted and modified by the proxy.
Method test_search When performing an LDAP search against the server; the search results and a single "search done" response is written to the transport.
Method test_unbind_clientEOF The server disconects correctly when the client terminates the connection without sending an unbind request.
Method test_unbind_clientUnbinds The server disconnects from the client gracefully when the client signals its intent to unbind.
def createServer(self, *responses, **kwds): (source)

Create a server for each test.

def test_bind(self): (source)

When binding to the server an `LDAPBindResponse` with a successful result code.is written to the transport.

def test_cannot_connect_to_proxied_server_no_pending_requests(self): (source)

When making a request and the proxy cannot connect to the proxied server, the connection is terminated.

def test_cannot_connect_to_proxied_server_pending_requests(self): (source)

When making a request and the proxy cannot connect to the proxied server, pending BIND and startTLS requests are replied to and the connection is closed.

def test_health_check_closes_connection_to_proxied_server(self): (source)

When the client disconnects immediately and before the connection to the proxied server has been established, the proxy terminates the connection to the proxied server. Messages sent by the client are discarded.

def test_intercepted_search_request(self): (source)

When performing an LDAP search against the server; the requests are intercepted and custom responses are written to the transport.

def test_intercepted_search_response(self): (source)

When performing an LDAP search against the server; the search results are intercepted and modified by the proxy.

def test_search(self): (source)

When performing an LDAP search against the server; the search results and a single "search done" response is written to the transport.

def test_unbind_clientEOF(self): (source)

The server disconects correctly when the client terminates the connection without sending an unbind request.

def test_unbind_clientUnbinds(self): (source)

The server disconnects from the client gracefully when the client signals its intent to unbind.