mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02: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.
14 lines
414 B
Python
14 lines
414 B
Python
from _typeshed import Incomplete
|
|
|
|
from .exceptions import FlowControlError as FlowControlError
|
|
|
|
LARGEST_FLOW_CONTROL_WINDOW: Incomplete
|
|
|
|
class WindowManager:
|
|
max_window_size: Incomplete
|
|
current_window_size: Incomplete
|
|
def __init__(self, max_window_size) -> None: ...
|
|
def window_consumed(self, size) -> None: ...
|
|
def window_opened(self, size) -> None: ...
|
|
def process_bytes(self, size): ...
|