mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 01:12:56 +00:00
python based regression test setup for auth_broker. This uses a http mock for cplane as well as the JWKs url. complications: 1. We cannot just use local_proxy binary, as that requires the pg_session_jwt extension which we don't have available in the current test suite 2. We cannot use just any old http mock for local_proxy, as auth_broker requires http2 to local_proxy as such, I used the h2 library to implement an echo server - copied from the examples in the h2 docs.
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
from _typeshed import Incomplete
|
|
|
|
class _BooleanConfigOption:
|
|
name: Incomplete
|
|
attr_name: Incomplete
|
|
def __init__(self, name) -> None: ...
|
|
def __get__(self, instance, owner): ...
|
|
def __set__(self, instance, value) -> None: ...
|
|
|
|
class DummyLogger:
|
|
def __init__(self, *vargs) -> None: ...
|
|
def debug(self, *vargs, **kwargs) -> None: ...
|
|
def trace(self, *vargs, **kwargs) -> None: ...
|
|
|
|
class OutputLogger:
|
|
file: Incomplete
|
|
trace_level: Incomplete
|
|
def __init__(self, file: Incomplete | None = ..., trace_level: bool = ...) -> None: ...
|
|
def debug(self, fmtstr, *args) -> None: ...
|
|
def trace(self, fmtstr, *args) -> None: ...
|
|
|
|
class H2Configuration:
|
|
client_side: Incomplete
|
|
validate_outbound_headers: Incomplete
|
|
normalize_outbound_headers: Incomplete
|
|
validate_inbound_headers: Incomplete
|
|
normalize_inbound_headers: Incomplete
|
|
logger: Incomplete
|
|
def __init__(
|
|
self,
|
|
client_side: bool = ...,
|
|
header_encoding: Incomplete | None = ...,
|
|
validate_outbound_headers: bool = ...,
|
|
normalize_outbound_headers: bool = ...,
|
|
validate_inbound_headers: bool = ...,
|
|
normalize_inbound_headers: bool = ...,
|
|
logger: Incomplete | None = ...,
|
|
) -> None: ...
|
|
@property
|
|
def header_encoding(self): ...
|
|
@header_encoding.setter
|
|
def header_encoding(self, value) -> None: ...
|