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

Function test_authenticate_basic_token

python/pyarrow/tests/test_flight.py:1665–1673  ·  view source on GitHub ↗

Test authenticate_basic_token with bearer token and auth headers.

()

Source from the content-addressed store, hash-verified

1663
1664
1665def test_authenticate_basic_token():
1666 """Test authenticate_basic_token with bearer token and auth headers."""
1667 with HeaderAuthFlightServer(auth_handler=no_op_auth_handler, middleware={
1668 "auth": HeaderAuthServerMiddlewareFactory()
1669 }) as server, \
1670 FlightClient(('localhost', server.port)) as client:
1671 token_pair = client.authenticate_basic_token(b'test', b'password')
1672 assert token_pair[0] == b'authorization'
1673 assert token_pair[1] == b'Bearer token1234'
1674
1675
1676def test_authenticate_basic_token_invalid_password():

Callers

nothing calls this directly

Calls 3

FlightClientClass · 0.90

Tested by

no test coverage detected