Files
kefu/deploy/recognition-audit-20260916/knowledge-cache-target-after.log
T
2026-09-21 10:34:06 +08:00

115 lines
14 KiB
Plaintext

test_desktop_ai_respects_explicit_dify_provider (test_backend.BackendIntegrationTest.test_desktop_ai_respects_explicit_dify_provider) ... [编排] 未配置模型网关,本次使用本机 ai_config 里的单模型设置。后台的「角色编排」不会生效。
ok
test_development_diagnostics_are_cloud_controlled_and_redacted (test_backend.BackendIntegrationTest.test_development_diagnostics_are_cloud_controlled_and_redacted) ... ok
test_dify_and_comfyui_use_provider_specific_endpoints (test_backend.BackendIntegrationTest.test_dify_and_comfyui_use_provider_specific_endpoints) ... ok
test_local_agent_name_overrides_cloud_and_blank_follows_cloud (test_backend.BackendIntegrationTest.test_local_agent_name_overrides_cloud_and_blank_follows_cloud) ... ok
test_model_connection_error_redacts_key (test_backend.BackendIntegrationTest.test_model_connection_error_redacts_key) ... ok
test_model_connection_success_does_not_expose_key (test_backend.BackendIntegrationTest.test_model_connection_success_does_not_expose_key) ... ok
test_model_connection_uses_unsaved_values_and_saved_key (test_backend.BackendIntegrationTest.test_model_connection_uses_unsaved_values_and_saved_key) ... ok
test_model_request_diagnostics_never_print_the_api_key (test_backend.BackendIntegrationTest.test_model_request_diagnostics_never_print_the_api_key) ... ok
test_pbkdf2_fallback_matches_standard_library (test_backend.BackendIntegrationTest.test_pbkdf2_fallback_matches_standard_library) ... ok
test_release_form_validation (test_backend.BackendIntegrationTest.test_release_form_validation) ... ok
test_release_status_detects_optional_and_forced_updates (test_backend.BackendIntegrationTest.test_release_status_detects_optional_and_forced_updates) ... ok
test_stale_runtime_file_is_ignored (test_backend.BackendIntegrationTest.test_stale_runtime_file_is_ignored) ... ok
test_a_404_falls_back_to_the_legacy_endpoint (test_backend.DesktopConfigFallbackTest.test_a_404_falls_back_to_the_legacy_endpoint)
服务端还是老版本时,必须照常同步,不能报错。 ... ok
test_a_404_on_both_paths_reports_the_last_error (test_backend.DesktopConfigFallbackTest.test_a_404_on_both_paths_reports_the_last_error) ... ok
test_a_bad_sync_key_surfaces_instead_of_falling_back (test_backend.DesktopConfigFallbackTest.test_a_bad_sync_key_surfaces_instead_of_falling_back)
401/403 说明服务在、只是凭证不对。这是要人去改配置的错误,不能吞。 ... ok
test_a_connection_failure_is_not_retried_on_the_old_path (test_backend.DesktopConfigFallbackTest.test_a_connection_failure_is_not_retried_on_the_old_path)
连不上就是连不上,换个路径同样连不上。 ... ok
test_desktop_login_can_remember_password_with_dpapi_protection (test_backend.DesktopConfigFallbackTest.test_desktop_login_can_remember_password_with_dpapi_protection) ... ok
test_desktop_login_unchecked_forgets_the_saved_password (test_backend.DesktopConfigFallbackTest.test_desktop_login_unchecked_forgets_the_saved_password) ... ok
test_forced_logout_keeps_explicitly_remembered_password (test_backend.DesktopConfigFallbackTest.test_forced_logout_keeps_explicitly_remembered_password) ... ok
test_naturally_expired_session_can_refresh_from_zyt (test_backend.DesktopConfigFallbackTest.test_naturally_expired_session_can_refresh_from_zyt) ... ok
test_revoked_unexpired_session_requires_password_again (test_backend.DesktopConfigFallbackTest.test_revoked_unexpired_session_requires_password_again) ... ok
test_session_heartbeat_never_silently_reauthenticates (test_backend.DesktopConfigFallbackTest.test_session_heartbeat_never_silently_reauthenticates) ... ok
test_session_heartbeat_persists_the_renewed_expiration (test_backend.DesktopConfigFallbackTest.test_session_heartbeat_persists_the_renewed_expiration) ... ok
test_startup_auth_config_is_read_from_management_and_cached (test_backend.DesktopConfigFallbackTest.test_startup_auth_config_is_read_from_management_and_cached) ... ok
test_startup_auth_config_rejects_an_incomplete_response (test_backend.DesktopConfigFallbackTest.test_startup_auth_config_rejects_an_incomplete_response) ... ok
test_the_fallback_is_decided_by_status_not_by_wording (test_backend.DesktopConfigFallbackTest.test_the_fallback_is_decided_by_status_not_by_wording)
老后台对未知 GET 路径回的是"页面不存在",未知 POST 才回"接口不存在"。 ... ok
test_the_legacy_constant_still_points_at_a_real_path (test_backend.DesktopConfigFallbackTest.test_the_legacy_constant_still_points_at_a_real_path)
DESKTOP_CONFIG_PATH 可能被别处引用,不能变成空字符串。 ... ok
test_the_new_endpoint_is_tried_first (test_backend.DesktopConfigFallbackTest.test_the_new_endpoint_is_tried_first) ... ok
test_zyt_admin_login_falls_back_while_server_has_no_terminal_7 (test_backend.DesktopConfigFallbackTest.test_zyt_admin_login_falls_back_while_server_has_no_terminal_7) ... ok
test_zyt_admin_login_uses_admin_endpoint_and_desktop_terminal (test_backend.DesktopConfigFallbackTest.test_zyt_admin_login_uses_admin_endpoint_and_desktop_terminal) ... ok
test_an_old_database_without_the_column_is_upgraded_in_place (test_backend.EndpointModeStorageTest.test_an_old_database_without_the_column_is_upgraded_in_place)
已经在用的库不能因为加一列就要重建表——重建的每一步都可能丢数据。 ... ok
test_an_unknown_mode_is_refused (test_backend.EndpointModeStorageTest.test_an_unknown_mode_is_refused) ... ok
test_running_the_column_migration_twice_is_harmless (test_backend.EndpointModeStorageTest.test_running_the_column_migration_twice_is_harmless) ... ok
test_the_default_is_auto (test_backend.EndpointModeStorageTest.test_the_default_is_auto)
不填就是老行为。这个默认值是整件事零回归的前提。 ... ok
test_the_mode_round_trips (test_backend.EndpointModeStorageTest.test_the_mode_round_trips) ... ok
test_a_trailing_slash_is_trimmed_in_both_modes (test_backend.EndpointModeTest.test_a_trailing_slash_is_trimmed_in_both_modes) ... ok
test_auto_completes_the_path_for_each_kind (test_backend.EndpointModeTest.test_auto_completes_the_path_for_each_kind) ... ok
test_auto_does_not_double_append_a_complete_url (test_backend.EndpointModeTest.test_auto_does_not_double_append_a_complete_url)
已经写全的标准地址不该再被拼一次。 ... ok
test_dify_upload_root_follows_the_mode (test_backend.EndpointModeTest.test_dify_upload_root_follows_the_mode)
Dify 传图要拼 /files/upload,根地址得跟着 exact 走。 ... ok
test_exact_uses_the_address_verbatim (test_backend.EndpointModeTest.test_exact_uses_the_address_verbatim) ... ok
test_exact_wins_for_every_kind (test_backend.EndpointModeTest.test_exact_wins_for_every_kind)
exact 是"别动我的地址",不该被接口类型的规则翻掉。 ... ok
test_the_connectivity_test_uses_the_same_rule_as_the_real_call (test_backend.EndpointModeTest.test_the_connectivity_test_uses_the_same_rule_as_the_real_call)
两边规则若不一致,测试会去戳一个和实际调用不同的地址。 ... ok
test_a_blank_url_from_the_backend_is_ignored (test_backend.GatewayArrivesBySyncTest.test_a_blank_url_from_the_backend_is_ignored)
后台配错回了空地址时,宁可保持原样也不要把客户端弄成没网关。 ... ok
test_an_old_backend_without_a_gateway_block_keeps_the_last_one (test_backend.GatewayArrivesBySyncTest.test_an_old_backend_without_a_gateway_block_keeps_the_last_one)
老版本后端不返回这一段。清空等于把已经能用的客户端打回"没有网关"。 ... ok
test_the_synced_gateway_address_lands_in_the_settings (test_backend.GatewayArrivesBySyncTest.test_the_synced_gateway_address_lands_in_the_settings) ... ok
test_a_missing_host_still_yields_something_usable (test_backend.GatewayUrlDerivationTest.test_a_missing_host_still_yields_something_usable)
拿不到 Host 时给本机地址,而不是空串。 ... ok
test_a_path_override_hangs_off_the_backend_domain (test_backend.GatewayUrlDerivationTest.test_a_path_override_hangs_off_the_backend_domain) ... ok
test_a_proxied_domain_gets_a_same_origin_path (test_backend.GatewayUrlDerivationTest.test_a_proxied_domain_gets_a_same_origin_path)
反代后面只有 80/443 对外,公网根本连不到 8770。 ... ok
test_an_absolute_override_is_used_as_is (test_backend.GatewayUrlDerivationTest.test_an_absolute_override_is_used_as_is)
网关在别的域名或别的机器上时用这个。 ... ok
test_an_empty_override_is_accepted_and_means_auto (test_backend.GatewayUrlDerivationTest.test_an_empty_override_is_accepted_and_means_auto) ... ok
test_an_override_without_a_scheme_is_refused_on_save (test_backend.GatewayUrlDerivationTest.test_an_override_without_a_scheme_is_refused_on_save)
漏了 http:// 会被拼成 https://你的域名/gw.example.com/v1/answer。 ... ok
test_direct_port_access_points_at_the_local_gateway_port (test_backend.GatewayUrlDerivationTest.test_direct_port_access_points_at_the_local_gateway_port)
本机开发:三个服务各占一个端口,网关就在同机的 8770。 ... ok
test_a_call_without_an_explicit_purpose_counts_as_a_customer_chat (test_backend.GuardCallsStayOutOfTheCustomerLogTest.test_a_call_without_an_explicit_purpose_counts_as_a_customer_chat)
桌面端补报的那条路不带 purpose——默认必须是 chat,不能凭空消失。 ... ok
test_guard_calls_can_still_be_listed_on_purpose (test_backend.GuardCallsStayOutOfTheCustomerLogTest.test_guard_calls_can_still_be_listed_on_purpose)
内部调用照样在花钱,需要的时候得能翻出来看,不能查无此物。 ... ok
test_legacy_guard_rows_are_reclassified_by_their_fingerprint (test_backend.GuardCallsStayOutOfTheCustomerLogTest.test_legacy_guard_rows_are_reclassified_by_their_fingerprint)
老库里的守卫调用落的是默认 chat,要按候选内容的指纹认出来并改判。 ... ok
test_stats_ignore_guard_calls (test_backend.GuardCallsStayOutOfTheCustomerLogTest.test_stats_ignore_guard_calls)
裁判分布要量的是"发给客户的回复够不够好",不是"布局认得准不准"。 ... ok
test_the_default_log_shows_only_customer_chats (test_backend.GuardCallsStayOutOfTheCustomerLogTest.test_the_default_log_shows_only_customer_chats) ... ok
test_the_reclassification_never_deletes_anything (test_backend.GuardCallsStayOutOfTheCustomerLogTest.test_the_reclassification_never_deletes_anything) ... ok
test_a_401_does_not_fall_back (test_backend.ModelCallReportFallbackTest.test_a_401_does_not_fall_back)
凭证不对换个路径重试同样不对,只会多打一个请求。 ... ok
test_a_404_falls_back_to_the_legacy_endpoint (test_backend.ModelCallReportFallbackTest.test_a_404_falls_back_to_the_legacy_endpoint)
还指着老后台(8765)的客户端必须照常上报,不能悄悄丢数据。 ... ok
test_a_failure_never_raises_into_the_reply_path (test_backend.ModelCallReportFallbackTest.test_a_failure_never_raises_into_the_reply_path)
上报是观测。它出问题绝不能把已经生成好的回复流程带下水。 ... ok
test_the_new_endpoint_is_tried_first (test_backend.ModelCallReportFallbackTest.test_the_new_endpoint_is_tried_first) ... ok
test_a_call_round_trips_customer_and_reply_text (test_backend.ModelCallTraceabilityTest.test_a_call_round_trips_customer_and_reply_text) ... ok
test_a_second_report_with_the_same_task_id_only_merges_review_reason (test_backend.ModelCallTraceabilityTest.test_a_second_report_with_the_same_task_id_only_merges_review_reason)
网关先落盘(候选、裁判都是权威数据),桌面端后到——不能把网关的数据覆盖掉。 ... ok
test_an_old_database_with_duplicate_task_ids_is_deduped_before_the_index_goes_on (test_backend.ModelCallTraceabilityTest.test_an_old_database_with_duplicate_task_ids_is_deduped_before_the_index_goes_on)
老版本拿会话指纹当 task_id,同一个会话十几轮全共享一个值——建唯一索引前必须先清干净。 ... ok
test_blank_task_ids_never_collide (test_backend.ModelCallTraceabilityTest.test_blank_task_ids_never_collide)
本地非网关路径目前还给不出 task_id,留空时按老行为各插一行。 ... ok
test_list_model_calls_finds_a_keyword_in_either_side_of_the_exchange (test_backend.ModelCallTraceabilityTest.test_list_model_calls_finds_a_keyword_in_either_side_of_the_exchange) ... ok
test_list_model_calls_parses_candidates_back_into_a_list (test_backend.ModelCallTraceabilityTest.test_list_model_calls_parses_candidates_back_into_a_list) ... ok
test_list_model_calls_respects_the_days_window (test_backend.ModelCallTraceabilityTest.test_list_model_calls_respects_the_days_window) ... ok
test_running_the_model_calls_migration_twice_is_harmless (test_backend.ModelCallTraceabilityTest.test_running_the_model_calls_migration_twice_is_harmless) ... ok
test_backend_verifies_the_admin_desktop_session_endpoint (test_backend.ZytAdminTokenVerificationTest.test_backend_verifies_the_admin_desktop_session_endpoint) ... ok
test_old_server_falls_back_to_current_admin_profile (test_backend.ZytAdminTokenVerificationTest.test_old_server_falls_back_to_current_admin_profile) ... ok
test_disabled_knowledge_keeps_published_count_and_stays_disabled (test_knowledge_cache_audit.KnowledgeCacheAudit.test_disabled_knowledge_keeps_published_count_and_stays_disabled) ... ok
test_invalid_saved_summary_shapes_are_empty (test_knowledge_cache_audit.KnowledgeCacheAudit.test_invalid_saved_summary_shapes_are_empty) ... ok
test_legacy_response_without_knowledge_keeps_cached_summary (test_knowledge_cache_audit.KnowledgeCacheAudit.test_legacy_response_without_knowledge_keeps_cached_summary) ... ok
test_logout_clears_cached_summary_before_next_account (test_knowledge_cache_audit.KnowledgeCacheAudit.test_logout_clears_cached_summary_before_next_account) ... ok
test_malformed_count_and_enable_flag_do_not_break_or_mislead_ui (test_knowledge_cache_audit.KnowledgeCacheAudit.test_malformed_count_and_enable_flag_do_not_break_or_mislead_ui) ... ok
test_old_settings_without_cache_use_empty_mapping (test_knowledge_cache_audit.KnowledgeCacheAudit.test_old_settings_without_cache_use_empty_mapping) ... ok
test_sync_survives_actual_json_save_and_reload (test_knowledge_cache_audit.KnowledgeCacheAudit.test_sync_survives_actual_json_save_and_reload) ... ok
test_ui_reads_persisted_count_without_mocking_settings_loader (test_knowledge_cache_audit.KnowledgeCacheAudit.test_ui_reads_persisted_count_without_mocking_settings_loader) ... ok
----------------------------------------------------------------------
Ran 80 tests in 9.398s
OK