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

Function test_token_auth_invalid

python/pyarrow/tests/test_flight.py:1615–1620  ·  view source on GitHub ↗

Test an auth mechanism that uses a handshake.

()

Source from the content-addressed store, hash-verified

1613
1614
1615def 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
1623header_auth_server_middleware_factory = HeaderAuthServerMiddlewareFactory()

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
authenticateMethod · 0.45

Tested by

no test coverage detected