← Về thư mục
tests/test_team_auth_routes.py
- _Hub · class · L26-L50 — class _Hub
- init · method · L27-L28 — def init(self) -> None
- add · method · L30-L31 — def add(self, conn)
- remove · method · L33-L35 — def remove(self, conn)
- subscribe · method · L37-L38 — def subscribe(self, conn, root_frame_id)
- emitter · method · L40-L41 — def emitter(self, root_frame_id)
- broadcast · method · L43-L44 — def broadcast(self, root_frame_id, event)
- has_subscriber · method · L46-L47 — def has_subscriber(self, root_frame_id)
- drop_frame · method · L49-L50 — def drop_frame(self, root_frame_id)
- _free_port · function · L53-L64 — def _free_port() -> int: # Not used for the daemon's own bind any more (that goes through # tests._ports.bound_gateway_server, which keeps the socket it probes). # Still imported by test_compute_session_routes and # test_cluster_session_production_wiring for OPENAI4S_WORKER_LISTEN, # where the number goes into config and is never rebound.
- _TeamDaemon · class · L67-L124 — class _TeamDaemon
- init · method · L75-L106 — def init( self, data_dir: Path, *, team_mode: bool = True, data_roots: list[Path] | None = None, roadmap_features: RoadmapFeatureFlags | None = None, trusted_proxy_origins: tuple[str, ...] = (), ) -> None
- seed_user · method · L108-L111 — def seed_user(self, username: str, password: str, role: str = "member") -> dict
- token · method · L114-L115 — def token(self) -> str
- close · method · L117-L124 — def close(self) -> None
- _fast_pbkdf2 · function · L128-L129 — def _fast_pbkdf2(monkeypatch)
- daemon · function · L133-L138 — def daemon(tmp_path: Path)
- _speak · function · L141-L161 — def _speak(port: int, request: bytes, *, read_all: bool = True) -> tuple[int, bytes]
- _get · function · L164-L180 — def _get( port: int, path: str, *, token: str | None = None, cookie: str | None = None, accept: str | None = None, )
- _post · function · L183-L204 — def _post( port: int, path: str, body: dict, *, cookie: str | None = None, origin: str | None = None, )
- _set_cookie · function · L207-L213 — def _set_cookie(raw: bytes) -> str
- _body_json · function · L216-L217 — def _body_json(raw: bytes) -> dict
- _login · function · L220-L227 — def _login(daemon, username: str, password: str) -> str
- _ws_upgrade · function · L230-L247 — def _ws_upgrade( port: int, *, cookie: str | None = None, origin: str | None = None ) -> tuple
- test_unauthenticated_api_answers_401 · function · L253-L256 — def test_unauthenticated_api_answers_401(daemon)
- test_unauthenticated_browser_get_redirects_to_login · function · L259-L262 — def test_unauthenticated_browser_get_redirects_to_login(daemon)
- test_login_page_and_assets_are_reachable_anonymously · function · L265-L268 — def test_login_page_and_assets_are_reachable_anonymously(daemon)
- test_access_token_no_longer_buys_a_browser_cookie · function · L271-L277 — def test_access_token_no_longer_buys_a_browser_cookie(daemon)
- test_login_round_trip_and_me · function · L283-L295 — def test_login_round_trip_and_me(daemon)
- test_login_sets_httponly_lax_cookie · function · L298-L316 — def test_login_sets_httponly_lax_cookie(daemon)
- test_exact_trusted_proxy_origin_allows_login_and_websocket · function · L319-L382 — def test_exact_trusted_proxy_origin_allows_login_and_websocket(tmp_path)
- test_wrong_password_is_401_and_audited · function · L385-L394 — def test_wrong_password_is_401_and_audited(daemon)
- test_logout_revokes_the_cookie · function · L397-L405 — def test_logout_revokes_the_cookie(daemon)
- test_disabled_user_cookie_stops_working · function · L408-L413 — def test_disabled_user_cookie_stops_working(daemon)
- test_login_rate_limit_answers_429 · function · L416-L439 — def test_login_rate_limit_answers_429(daemon)
- test_loopback_access_token_header_still_works · function · L445-L447 — def test_loopback_access_token_header_still_works(daemon)
- test_proxy_mode_never_mints_service_identity_from_machine_token · function · L454-L509 — def test_proxy_mode_never_mints_service_identity_from_machine_token( tmp_path, credential_header )
- test_me_reports_the_service_identity · function · L512-L519 — def test_me_reports_the_service_identity(daemon)
- test_ws_upgrade_requires_a_login · function · L525-L528 — def test_ws_upgrade_requires_a_login(daemon)
- test_ws_upgrade_succeeds_with_a_login_cookie · function · L531-L535 — def test_ws_upgrade_succeeds_with_a_login_cookie(daemon)
- test_team_mode_off_keeps_the_disabled_shapes · function · L541-L563 — def test_team_mode_off_keeps_the_disabled_shapes(tmp_path)