← Về thư mục
tests/test_volcengine_connector.py
- _ScriptedRunner · class · L31-L43 — class _ScriptedRunner
- init · method · L32-L34 — def init(self, replies)
- call · method · L36-L43 — def call(self, argv, timeout_s, cancel_event)
- _bridge · function · L46-L53 — def _bridge(replies)
- _fake_arkcli · function · L56-L125 — def _fake_arkcli(tmp_path)
- test_child_process_environment_does_not_inherit_daemon_secrets · function · L128-L139 — def test_child_process_environment_does_not_inherit_daemon_secrets()
- test_proxy_environment_variables_reach_the_arkcli_child · function · L142-L157 — def test_proxy_environment_variables_reach_the_arkcli_child()
- test_bridge_matches_the_profile_default_before_getting_the_raw_key · function · L160-L208 — def test_bridge_matches_the_profile_default_before_getting_the_raw_key()
- test_bridge_refuses_to_guess_when_multiple_keys_do_not_match · function · L211-L246 — def test_bridge_refuses_to_guess_when_multiple_keys_do_not_match()
- test_bridge_uses_the_profile_text_default_model · function · L249-L264 — def test_bridge_uses_the_profile_text_default_model()
- test_bridge_lists_only_invocable_platform_text_endpoints · function · L267-L299 — def test_bridge_lists_only_invocable_platform_text_endpoints()
- test_endpoint_inventory_accepts_a_top_level_list_payload · function · L302-L322 — def test_endpoint_inventory_accepts_a_top_level_list_payload()
- test_endpoint_inventory_tolerates_string_and_numeric_invocable_flags · function · L325-L356 — def test_endpoint_inventory_tolerates_string_and_numeric_invocable_flags()
- test_device_login_start_uses_the_cross_platform_no_browser_flow · function · L359-L373 — def test_device_login_start_uses_the_cross_platform_no_browser_flow()
- test_bridge_surfaces_a_safe_ark_failure_reason_without_echoing_the_code · function · L376-L394 — def test_bridge_surfaces_a_safe_ark_failure_reason_without_echoing_the_code()
- test_inner_device_code_is_wrapped_with_the_pending_oauth_state · function · L397-L404 — def test_inner_device_code_is_wrapped_with_the_pending_oauth_state()
- test_bridge_resolves_the_ark_auto_router_alias · function · L407-L422 — def test_bridge_resolves_the_ark_auto_router_alias()
- test_team_plan_never_falls_back_to_a_personal_profile · function · L425-L436 — def test_team_plan_never_falls_back_to_a_personal_profile()
- _ConnectedBridge · class · L439-L525 — class _ConnectedBridge
- init · method · L440-L441 — def init(self)
- availability · method · L443-L444 — def availability(self)
- whoami · method · L446-L455 — def whoami(self)
- plans · method · L457-L466 — def plans(self)
- usage · method · L468-L487 — def usage(self)
- profiles · method · L489-L496 — def profiles(self)
- api_key_inventory · method · L498-L508 — def api_key_inventory(self, profile_name)
- profile_for_plan · method · L510-L512 — def profile_for_plan(self, plan_key)
- default_api_key · method · L514-L516 — def default_api_key(self, profile_name)
- api_key · method · L518-L521 — def api_key(self, profile_name, key_id=None)
- default_model · method · L523-L525 — def default_model(self, profile_name)
- test_connection_projection_contains_quota_but_no_cloud_identifiers_or_keys · function · L528-L546 — def test_connection_projection_contains_quota_but_no_cloud_identifiers_or_keys()
- test_pascalcase_whoami_fields_still_project_a_connected_identity · function · L549-L572 — def test_pascalcase_whoami_fields_still_project_a_connected_identity()
- test_a_chinese_seat_error_projects_the_seat_required_state · function · L575-L584 — def test_a_chinese_seat_error_projects_the_seat_required_state()
- test_an_untagged_aggregate_usage_row_does_not_exhaust_a_tagged_plan · function · L587-L606 — def test_an_untagged_aggregate_usage_row_does_not_exhaust_a_tagged_plan()
- test_an_untagged_seat_error_does_not_block_a_tagged_healthy_plan · function · L609-L624 — def test_an_untagged_seat_error_does_not_block_a_tagged_healthy_plan()
- test_a_single_untagged_usage_row_still_reports_quota_exhaustion · function · L627-L641 — def test_a_single_untagged_usage_row_still_reports_quota_exhaustion()
- test_pending_or_expired_plans_are_not_available_for_configuration · function · L644-L666 — def test_pending_or_expired_plans_are_not_available_for_configuration()
- test_active_plan_without_a_key_is_connected_but_not_ready · function · L669-L689 — def test_active_plan_without_a_key_is_connected_but_not_ready()
- test_connected_account_with_platform_profile_but_no_key_requests_a_key · function · L692-L706 — def test_connected_account_with_platform_profile_but_no_key_requests_a_key()
- test_platform_key_check_failure_is_not_reported_as_an_inactive_plan · function · L709-L739 — def test_platform_key_check_failure_is_not_reported_as_an_inactive_plan()
- unavailable · function · L727-L728 — def unavailable(_profile)
- test_refresh_performs_one_live_projection_without_a_duplicate_key_sync · function · L742-L757 — def test_refresh_performs_one_live_projection_without_a_duplicate_key_sync()
- tracked_whoami · function · L747-L749 — def tracked_whoami()
- test_platform_key_and_single_endpoint_are_ready_for_provisioning · function · L760-L802 — def test_platform_key_and_single_endpoint_are_ready_for_provisioning()
- test_inactive_plan_does_not_hide_a_ready_platform_endpoint · function · L805-L841 — def test_inactive_plan_does_not_hide_a_ready_platform_endpoint()
- test_multiple_api_keys_require_an_explicit_opaque_choice · function · L844-L881 — def test_multiple_api_keys_require_an_explicit_opaque_choice()
- test_provisioning_material_repr_never_contains_the_api_key · function · L884-L897 — def test_provisioning_material_repr_never_contains_the_api_key()
- test_device_login_is_single_flight_until_the_code_is_submitted · function · L900-L915 — def test_device_login_is_single_flight_until_the_code_is_submitted()
- DeviceBridge · class · L901-L906 — class DeviceBridge(_ConnectedBridge)
- login_device_start · method · L902-L906 — def login_device_start(self)
- test_the_offline_suite_never_resolves_a_real_arkcli · function · L918-L924 — def test_the_offline_suite_never_resolves_a_real_arkcli(tmp_path, monkeypatch)
- test_a_launcher_discovered_windows_cli_never_shadows_a_wsl_cli · function · L927-L941 — def test_a_launcher_discovered_windows_cli_never_shadows_a_wsl_cli( tmp_path, monkeypatch )
- test_the_fallback_cannot_bypass_the_offline_pin · function · L944-L949 — def test_the_fallback_cannot_bypass_the_offline_pin(tmp_path, monkeypatch)
- test_a_windows_cli_through_wsl_interop_receives_the_caller_contract · function · L953-L972 — def test_a_windows_cli_through_wsl_interop_receives_the_caller_contract( monkeypatch, )
- test_an_npm_cmd_shim_resolves_to_the_node_entry_script · function · L975-L999 — def test_an_npm_cmd_shim_resolves_to_the_node_entry_script(tmp_path)
- test_a_plain_batch_file_is_not_mistaken_for_an_npm_shim · function · L1002-L1017 — def test_a_plain_batch_file_is_not_mistaken_for_an_npm_shim(tmp_path)
- which · function · L1008-L1009 — def which(name)
- test_chinese_project_selection_failure_maps_to_the_recovery_state · function · L1020-L1033 — def test_chinese_project_selection_failure_maps_to_the_recovery_state()
- test_purely_alphanumeric_secrets_in_cli_errors_are_redacted · function · L1036-L1046 — def test_purely_alphanumeric_secrets_in_cli_errors_are_redacted()
- test_an_unrunnable_executable_is_a_controlled_failure_not_a_crash · function · L1049-L1063 — def test_an_unrunnable_executable_is_a_controlled_failure_not_a_crash()
- raising_runner · function · L1050-L1052 — def raising_runner(argv, timeout_s, cancel_event)
- test_a_transient_version_probe_failure_is_not_cached_forever · function · L1066-L1083 — def test_a_transient_version_probe_failure_is_not_cached_forever()
- runner · function · L1069-L1074 — def runner(argv, timeout_s, cancel_event)
- test_plaintext_envelope_paste_is_accepted_and_rewrapped · function · L1086-L1093 — def test_plaintext_envelope_paste_is_accepted_and_rewrapped()
- test_an_expired_pending_login_mints_a_fresh_authorization · function · L1096-L1118 — def test_an_expired_pending_login_mints_a_fresh_authorization()
- DeviceBridge · class · L1099-L1105 — class DeviceBridge(_ConnectedBridge)
- login_device_start · method · L1100-L1105 — def login_device_start(self)
- test_a_local_paste_format_error_keeps_the_pending_authorization · function · L1121-L1138 — def test_a_local_paste_format_error_keeps_the_pending_authorization()
- DeviceBridge · class · L1122-L1127 — class DeviceBridge(_ConnectedBridge)
- login_device_start · method · L1123-L1127 — def login_device_start(self)
- test_cancel_during_token_exchange_stays_cancelled · function · L1141-L1163 — def test_cancel_during_token_exchange_stays_cancelled()
- CancelRace · class · L1144-L1154 — class CancelRace(_ConnectedBridge)
- login_device_start · method · L1145-L1149 — def login_device_start(self)
- login_device_complete · method · L1151-L1154 — def login_device_complete(self, code, cancel_event=None)
- test_key_choice_projection_surfaces_a_pending_endpoint_choice · function · L1166-L1211 — def test_key_choice_projection_surfaces_a_pending_endpoint_choice()
- test_provisioning_reuses_the_scan_probes_without_re_spawning_the_cli · function · L1214-L1259 — def test_provisioning_reuses_the_scan_probes_without_re_spawning_the_cli()
- profiles · function · L1220-L1228 — def profiles()
- inventory · function · L1230-L1240 — def inventory(_profile)
- endpoints · function · L1242-L1244 — def endpoints(_profile)
- test_an_explicit_key_choice_skips_the_inventory_preflight · function · L1262-L1279 — def test_an_explicit_key_choice_skips_the_inventory_preflight()
- test_a_dead_explicit_key_choice_maps_to_the_choice_error · function · L1282-L1301 — def test_a_dead_explicit_key_choice_maps_to_the_choice_error()
- test_connection_scan_is_single_flight_across_threads · function · L1304-L1334 — def test_connection_scan_is_single_flight_across_threads()
- SlowBridge · class · L1312-L1317 — class SlowBridge(_ConnectedBridge)
- whoami · method · L1313-L1317 — def whoami(self)
- _Hub · class · L1337-L1342 — class _Hub
- emitter · method · L1338-L1339 — def emitter(self, _root_frame_id)
- broadcast · method · L1341-L1342 — def broadcast(self, _root_frame_id, _event)
- _GatewayConnector · class · L1345-L1410 — class _GatewayConnector
- connection · method · L1346-L1378 — def connection(self, *, force=False)
- refresh · method · L1380-L1381 — def refresh(self)
- provisioning_material · method · L1383-L1397 — def provisioning_material( self, plan_key=None, key_choice=None, endpoint_choice=None )
- start_device_login · method · L1399-L1404 — def start_device_login(self)
- complete_device_login · method · L1406-L1407 — def complete_device_login(self, _code)
- cancel_login · method · L1409-L1410 — def cancel_login(self)
- test_gateway_connector_routes_through_the_real_cli_bridge · function · L1414-L1486 — def test_gateway_connector_routes_through_the_real_cli_bridge(tmp_path, monkeypatch)
- call · function · L1441-L1445 — def call(method, path, payload=None)
- test_gateway_configure_brokers_the_key_and_never_returns_it · function · L1490-L1541 — def test_gateway_configure_brokers_the_key_and_never_returns_it(tmp_path, monkeypatch)
- test_gateway_browser_login_returns_cross_platform_authorization · function · L1545-L1576 — def test_gateway_browser_login_returns_cross_platform_authorization( tmp_path, monkeypatch )
- _volcengine_route_handler · function · L1579-L1590 — def _volcengine_route_handler(tmp_path, monkeypatch, connector)
- test_gateway_rejects_an_unknown_login_mode_with_a_400 · function · L1594-L1607 — def test_gateway_rejects_an_unknown_login_mode_with_a_400(tmp_path, monkeypatch)
- test_gateway_disconnect_without_confirmation_is_a_400 · function · L1611-L1624 — def test_gateway_disconnect_without_confirmation_is_a_400(tmp_path, monkeypatch)
- test_gateway_configure_surfaces_a_pending_plan_choice_as_a_409 · function · L1628-L1647 — def test_gateway_configure_surfaces_a_pending_plan_choice_as_a_409( tmp_path, monkeypatch )
- ChoiceRequired · class · L1631-L1635 — class ChoiceRequired(_GatewayConnector)
- provisioning_material · method · L1632-L1635 — def provisioning_material( self, plan_key=None, key_choice=None, endpoint_choice=None )
- test_gateway_login_maps_an_arkcli_timeout_to_a_503 · function · L1651-L1666 — def test_gateway_login_maps_an_arkcli_timeout_to_a_503(tmp_path, monkeypatch)
- TimingOut · class · L1652-L1654 — class TimingOut(_GatewayConnector)
- start_device_login · method · L1653-L1654 — def start_device_login(self)