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

Function test_authenticate_basic_token

python/pyarrow/tests/test_flight.py:1627–1635  ·  view source on GitHub ↗

Test authenticate_basic_token with bearer token and auth headers.

()

Source from the content-addressed store, hash-verified

1625
1626
1627def test_authenticate_basic_token():
1628 """Test authenticate_basic_token with bearer token and auth headers."""
1629 with HeaderAuthFlightServer(auth_handler=no_op_auth_handler, middleware={
1630 "auth": HeaderAuthServerMiddlewareFactory()
1631 }) as server, \
1632 FlightClient(('localhost', server.port)) as client:
1633 token_pair = client.authenticate_basic_token(b'test', b'password')
1634 assert token_pair[0] == b'authorization'
1635 assert token_pair[1] == b'Bearer token1234'
1636
1637
1638def test_authenticate_basic_token_invalid_password():

Callers

nothing calls this directly

Calls 3

FlightClientClass · 0.90

Tested by

no test coverage detected