MCPcopy Create free account
hub / github.com/apache/arrow / test_token_auth_invalid

Function test_token_auth_invalid

python/pyarrow/tests/test_flight.py:1653–1658  ·  view source on GitHub ↗

Test an auth mechanism that uses a handshake.

()

Source from the content-addressed store, hash-verified

1651
1652
1653def 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
1661header_auth_server_middleware_factory = HeaderAuthServerMiddlewareFactory()

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
authenticateMethod · 0.45

Tested by

no test coverage detected