Test an auth mechanism that uses a handshake.
()
| 1651 | |
| 1652 | |
| 1653 | def test_token_auth_invalid(): |
| 1654 | """Test an auth mechanism that uses a handshake.""" |
| 1655 | with EchoStreamFlightServer(auth_handler=token_auth_handler) as server, \ |
| 1656 | FlightClient(('localhost', server.port)) as client: |
| 1657 | with pytest.raises(flight.FlightUnauthenticatedError): |
| 1658 | client.authenticate(TokenClientAuthHandler('test', 'wrong')) |
| 1659 | |
| 1660 | |
| 1661 | header_auth_server_middleware_factory = HeaderAuthServerMiddlewareFactory() |
nothing calls this directly
no test coverage detected