Test an auth mechanism that uses a handshake.
()
| 1613 | |
| 1614 | |
| 1615 | def test_token_auth_invalid(): |
| 1616 | """Test an auth mechanism that uses a handshake.""" |
| 1617 | with EchoStreamFlightServer(auth_handler=token_auth_handler) as server, \ |
| 1618 | FlightClient(('localhost', server.port)) as client: |
| 1619 | with pytest.raises(flight.FlightUnauthenticatedError): |
| 1620 | client.authenticate(TokenClientAuthHandler('test', 'wrong')) |
| 1621 | |
| 1622 | |
| 1623 | header_auth_server_middleware_factory = HeaderAuthServerMiddlewareFactory() |
nothing calls this directly
no test coverage detected