dify/api/tests/unit_tests/services
Jyong c8780dcb7c fix(workflow): stabilize KnowledgeFS retrieval access
Keep the workflow editor mounted after history updates, expose an independent Workflow Access control, and map KnowledgeFS admission failures to actionable localized errors. Add frontend and backend regression coverage for KF-BUG-020 and KF-BUG-021.
2026-08-11 11:51:17 -04:00
..
agent fix: restore upstream behavior after main merge 2026-08-11 10:23:44 +08:00
auth fix(auth): add bounded timeout to WaterCrawl credential validation (#39824) 2026-07-31 13:52:02 +00:00
data_migration test: Type test (#40371) 2026-08-10 02:13:17 +00:00
enterprise Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-07 09:55:10 +08:00
openapi feat: adding dify cli (#36348) 2026-05-26 01:12:36 +00:00
plugin fix(api): scope temporary capabilities to owners (#39863) 2026-08-07 09:21:13 +00:00
rag_pipeline fix(api): scope temporary capabilities to owners (#39863) 2026-08-07 09:21:13 +00:00
recommend_app feat(api): cache remote recommended app template fetches (#40176) 2026-08-10 02:30:15 +00:00
retention chore: bump pyrefly version (#39876) 2026-08-03 05:59:01 +00:00
tools Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-11 10:14:53 +08:00
workflow test: use sqlite sessions at generation boundaries (#40095) 2026-08-07 03:45:27 +00:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
controller_api.py test: use real ORM models in dataset service tests (#40018) 2026-08-06 04:14:12 +00:00
dataset_service_test_helpers.py test: use real ORM models in dataset service tests (#40018) 2026-08-06 04:14:12 +00:00
document_service_validation.py test: use real ORM models in dataset service tests (#40018) 2026-08-06 04:14:12 +00:00
hit_service.py test: use real ORM models in dataset service tests (#40018) 2026-08-06 04:14:12 +00:00
test_account_service.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-10 10:34:47 +08:00
test_agent_app_feature_service.py test: use sqlite3 session in test_agent_app_feature_service (#38724) 2026-07-28 06:32:07 +00:00
test_agent_app_sandbox_service.py refactor(dify-agent): download Binding files through Agent Stub (#40143) 2026-08-07 14:56:52 +00:00
test_agent_config_service.py refactor(dify-agent): make config pulls direct and remove gRPC (#40044) 2026-08-07 06:54:07 +00:00
test_agent_drive_service.py test: use sqlite3 session in test_agent_drive_service (#38709) 2026-07-14 04:06:43 +00:00
test_agent_tool_inner_service.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_annotation_service.py test: use real ORM models in app and API tests (#40020) 2026-08-06 04:36:58 +00:00
test_api_token_service.py Update application components and supporting logic 2026-08-11 05:52:22 -04:00
test_app_dsl_service.py fix(api): scope temporary capabilities to owners (#39863) 2026-08-07 09:21:13 +00:00
test_app_generate_service_streaming_integration.py refactor: improve stream close 2 (#37106) 2026-06-23 03:32:33 +00:00
test_app_generate_service.py refactor: explicit DB session propagation across backend paths (#38559) 2026-07-15 06:48:28 +00:00
test_app_model_config_service.py refactor: explicit DB session propagation across backend paths (#38559) 2026-07-15 06:48:28 +00:00
test_app_service.py fix: gate Agent access until first publish (#40105) 2026-08-06 12:36:24 +00:00
test_app_task_service.py feat(api): Agent App type S1 — AppMode.AGENT + create flow + binding (#36829) 2026-06-02 03:50:10 +00:00
test_archive_workflow_run_logs.py feat(retention): add V2 workflow run archive bundlesa (#37747) 2026-06-23 15:20:25 +08:00
test_async_workflow_service.py test: use sqlite3 session in test_async_workflow_service (#38692) 2026-07-23 03:34:10 +00:00
test_audio_service.py fix(api): bind scoped lookups to nested owner refs (#38470) 2026-07-15 09:31:09 +00:00
test_batch_indexing_base.py chore: bump pyrefly version (#39876) 2026-08-03 05:59:01 +00:00
test_billing_service.py chore: more upload file size for paid user (#39967) 2026-08-06 03:23:16 +00:00
test_clear_free_plan_expired_workflow_run_logs.py refactor: optimize free plan workflow run cleanup batching (#37227) 2026-06-17 03:19:26 +00:00
test_clear_free_plan_tenant_expired_logs.py test: use sqlite3 session in test_clear_free_plan_tenant_expired_logs (#38693) 2026-07-22 04:16:21 +00:00
test_code_based_extension_service.py test: add tests for some files in services module (#32583) 2026-03-11 14:21:56 +08:00
test_conversation_service.py refactor: introduce agent working environment architecture (#39480) 2026-07-28 13:16:05 +00:00
test_credential_permission_service.py test: exercise credential visibility with SQLite (#39827) 2026-07-31 03:20:21 +00:00
test_credit_pool_service.py test: use sqlite3 session in test_credit_pool_service (#38694) 2026-08-05 08:43:27 +00:00
test_dataset_service_dataset.py test: use real ORM models in dataset service tests (#40018) 2026-08-06 04:14:12 +00:00
test_dataset_service_document.py test: use real ORM models in dataset service tests (#40018) 2026-08-06 04:14:12 +00:00
test_dataset_service_lock_not_owned.py test: use sqlite3 session in test_dataset_service_lock_not_owned (#38755) 2026-07-14 06:40:31 +00:00
test_dataset_service_segment.py fix(api): scope segment batch deletes (#38217) 2026-08-01 01:39:40 +00:00
test_datasource_provider_service.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-07-27 13:16:01 +08:00
test_document_indexing_task_proxy.py chore(api): Fix several typing errors (#37248) 2026-06-12 14:02:09 +00:00
test_duplicate_document_indexing_task_proxy.py chore(api): Fix several typing errors (#37248) 2026-06-12 14:02:09 +00:00
test_export_app_messages.py feat: add export app messages (#32990) 2026-03-07 11:27:15 +08:00
test_external_dataset_service.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-07 09:55:10 +08:00
test_feature_query_service.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_app_dsl_version.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_deployment_edition.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_enable_app_deploy.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_explore_banner.py perf(web): streaming ssr for home page (#39922) 2026-08-04 02:16:08 +00:00
test_feature_service_gateway.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_human_input_email_delivery.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_internal_policies.py refactor: remove backend-only system feature fields (#39543) 2026-07-25 02:01:12 +00:00
test_feature_service_knowledge_file_size_limit.py chore: more upload file size for paid user (#39967) 2026-08-06 03:23:16 +00:00
test_feature_service_knowledge_fs.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-07 09:55:10 +08:00
test_feature_service_learn_app.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-07 09:55:10 +08:00
test_feature_service_license_expiry_notice.py refactor(api): move license expiry notice flag onto license detail (#40128) 2026-08-07 03:53:35 +00:00
test_feature_service_licensed_seats.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_plugin_installation_permission.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_sso_protocol.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_trial_models.py chore: split trial models to a single API (#36796) 2026-05-31 13:09:13 +00:00
test_feature_service_vector_space.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feature_service_webapp_public_access.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_feedback_service.py fix(api): end_date filter in feedback export excludes the entire end date (#40114) 2026-08-10 03:27:56 +00:00
test_file_request_service.py feat(agent): separate CLI file URL audiences (#39952) 2026-08-04 13:14:02 +00:00
test_file_service.py test: use real ORM models in app and API tests (#40020) 2026-08-06 04:36:58 +00:00
test_hit_testing_service.py test: move hit testing service coverage to unit tests (#38925) 2026-07-15 03:37:16 +00:00
test_human_input_delivery_test_service.py refactor(api): decouple console queries through application services (#40031) 2026-08-07 00:42:55 +00:00
test_human_input_file_upload_service.py chore(api): upgrade graphon to v0.6.0, migrate HITL logic back to Dify (#38247) 2026-07-03 03:45:21 +00:00
test_human_input_service.py test: share unbound unit test sessions (#39690) 2026-07-28 14:12:08 +00:00
test_knowledge_fs_app_admission_service.py fix(workflow): stabilize KnowledgeFS retrieval access 2026-08-11 11:51:17 -04:00
test_knowledge_fs_app_binding_management.py Implement the requested changes across the application 2026-08-09 22:40:48 -04:00
test_knowledge_fs_app_execution_capability.py Implement the requested changes across the application 2026-08-09 22:40:48 -04:00
test_knowledge_fs_app_execution.py Refactor frontend architecture and simplify implementation 2026-07-29 02:30:27 -04:00
test_knowledge_fs_batch_capability.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_capability_broker.py fix(dataset): restore New RAG document uploads 2026-07-27 21:46:16 +08:00
test_knowledge_fs_capability.py feat(cli): add KnowledgeFS filesystem commands 2026-07-31 04:11:14 -04:00
test_knowledge_fs_cleanup.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_control_plane_service.py feat(dataset): add New RAG knowledge settings 2026-07-28 20:56:00 +08:00
test_knowledge_fs_control_space_commands.py feat(dataset): support deferred New RAG model setup 2026-07-28 23:19:25 +08:00
test_knowledge_fs_control_space_lifecycle.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_control_space_management.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_credential_service.py Update application components and supporting logic 2026-08-11 05:52:22 -04:00
test_knowledge_fs_cutover_runtime_gate.py feat(knowledge-fs): automate greenfield workspace cutover 2026-07-28 09:12:50 -04:00
test_knowledge_fs_cutover.py feat(knowledge-fs): automate greenfield workspace cutover 2026-07-28 09:12:50 -04:00
test_knowledge_fs_data_facade.py feat(knowledge-fs): add durable metadata management 2026-08-10 02:55:09 -04:00
test_knowledge_fs_download_facade.py feat(knowledge): support KnowledgeFS document downloads 2026-08-11 16:29:23 +08:00
test_knowledge_fs_download_service.py feat(knowledge): support KnowledgeFS document downloads 2026-08-11 16:29:23 +08:00
test_knowledge_fs_greenfield_initializer.py test(knowledge-fs): cover archived workspace bootstrap 2026-07-28 09:25:21 -04:00
test_knowledge_fs_initial_source_preview.py feat(knowledge-fs): create spaces with initial sources 2026-08-10 22:08:01 +08:00
test_knowledge_fs_lifecycle_readiness.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_lifecycle_remote_http.py feat(dataset): support deferred New RAG model setup 2026-07-28 23:19:25 +08:00
test_knowledge_fs_lifecycle_saga.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_membership_account_integration.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_membership_changes.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_object_storage.py feat(knowledge): stage document uploads before admission 2026-08-10 10:58:17 -04:00
test_knowledge_fs_observability.py Refactor frontend architecture and simplify implementation 2026-07-29 02:30:27 -04:00
test_knowledge_fs_orphan_reconciler.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-07-29 20:26:13 +08:00
test_knowledge_fs_product_application_service.py feat(knowledge-fs): create spaces with initial sources 2026-08-10 22:08:01 +08:00
test_knowledge_fs_product_authorization.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_product_dto.py fix(knowledge-fs): handle disabled reindex results 2026-08-11 16:10:20 +08:00
test_knowledge_fs_product_operations.py feat(knowledge-fs): add bulk logical document deletion support 2026-08-11 19:47:12 +08:00
test_knowledge_fs_product_remote_http.py fix(product_remote_http): log upstream rejection details for specific error statuses 2026-08-10 14:34:30 +08:00
test_knowledge_fs_product_service.py feat(dataset): filter New RAG spaces by creator 2026-08-05 13:46:06 +08:00
test_knowledge_fs_query_images.py feat(knowledge-fs): support image query retrieval 2026-08-09 09:45:43 -04:00
test_knowledge_fs_remote_registry.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-07-29 20:26:13 +08:00
test_knowledge_fs_revocation.py Expand application capabilities and refactor core workflows 2026-07-22 05:09:09 -04:00
test_knowledge_fs_runtime.py perf(knowledge-fs): reduce capability request overhead 2026-07-30 03:14:51 -04:00
test_knowledge_fs_staged_upload_service.py Update application components and supporting logic 2026-08-11 05:52:22 -04:00
test_knowledge_retrieval_inner_service.py test: use SQLite sessions in services core (#39112) 2026-07-16 09:32:11 +00:00
test_knowledge_service.py refactor: replace dict with BedrockRetrievalSetting BaseModel in knowledge_service (#34080) 2026-03-25 21:33:24 +09:00
test_message_service.py test: use sqlite3 session in test_message_service (#38698) 2026-07-27 02:01:47 +00:00
test_messages_clean_service.py test(api): manage backend pytest services natively (#36235) 2026-05-19 07:52:15 +00:00
test_metadata_bug_complete.py test: use sqlite3 session in test_metadata_bug_complete (#38721) 2026-07-29 05:50:26 +00:00
test_metadata_nullable_bug.py test: use sqlite3 session in test_metadata_nullable_bug (#38717) 2026-07-25 14:05:52 +00:00
test_metadata_service_session_boundary.py refactor: explicit DB session propagation across backend paths (#38559) 2026-07-15 06:48:28 +00:00
test_model_load_balancing_service.py feat: support azure keyvault (#39933) 2026-08-07 00:42:13 +00:00
test_model_provider_service_sanitization.py chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
test_model_provider_service.py feat: optimize integrations initial loading (#40118) 2026-08-07 02:06:25 +00:00
test_oauth_device_flow.py test: use sqlite3 session in test_oauth_device_flow (#38782) 2026-07-13 07:48:15 +00:00
test_oauth_server_service.py test: move OAuth server service coverage to unit tests (#38931) 2026-07-28 04:09:32 +00:00
test_operation_service.py fix: bound OperationService billing requests (#37425) 2026-06-22 06:45:03 +00:00
test_rag_pipeline_task_proxy.py chore: add Type to test (#37191) 2026-06-19 16:44:20 +00:00
test_recommended_app_service.py refactor: move trial app capability out of system features (#39562) 2026-07-26 12:02:30 +00:00
test_schedule_service.py test: use real ORM models in workflow repository tests (#40019) 2026-08-06 04:06:04 +00:00
test_schema_definition_service.py refactor(api): decouple setup and spec endpoints (#40104) 2026-08-08 11:52:15 +00:00
test_setup_adapters.py refactor(api): decouple setup and spec endpoints (#40104) 2026-08-08 11:52:15 +00:00
test_setup_service.py refactor(api): decouple setup and spec endpoints (#40104) 2026-08-08 11:52:15 +00:00
test_snippet_dsl_service.py test: Type test (#40371) 2026-08-10 02:13:17 +00:00
test_snippet_generate_service.py test: Type test (#40371) 2026-08-10 02:13:17 +00:00
test_snippet_service.py feat(workflow): support LLM environment variables (#39125) 2026-08-04 06:17:13 +00:00
test_step_by_step_tour_service.py feat(web): add step-by-step tour shell (#38785) 2026-07-20 09:23:25 +00:00
test_summary_index_service.py test: use real ORM models in RAG indexing tests (#40017) 2026-08-05 10:03:23 +00:00
test_telemetry_service.py feat: add CE telemetry report (#39452) 2026-07-27 02:04:28 +00:00
test_trigger_provider_service.py test: use SQLite sessions in services core (#39057) 2026-07-27 09:36:44 +00:00
test_trigger_subscription_builder_service.py fix(api): scope temporary capabilities to owners (#39863) 2026-08-07 09:21:13 +00:00
test_variable_truncator_additional.py chore(api): convert BaseTruncator from ABC to Protocol (#37199) 2026-06-09 02:55:36 +00:00
test_variable_truncator.py fix(api): honor array-element limit and byte budget for list[File] in VariableTruncator (#39218) (#39220) 2026-07-27 02:12:57 +00:00
test_vector_service.py refactor: explicit DB session propagation across backend paths (#38559) 2026-07-15 06:48:28 +00:00
test_vector_space_admission_service.py chore: more upload file size for paid user (#39967) 2026-08-06 03:23:16 +00:00
test_webhook_service_additional.py refactor(tests): replace mock_logger with caplog in 5 service tests (#37468) (#37715) 2026-06-22 05:53:51 +00:00
test_webhook_service.py test: move webhook service coverage to unit tests (#38945) 2026-08-06 04:48:27 +00:00
test_website_service.py fix(api): bound JinaReader and adaptive-crawl HTTP timeouts (#39859) (#39860) 2026-08-02 02:49:17 +00:00
test_workflow_app_service_metadata.py test: move workflow app service coverage to unit tests (#38946) 2026-07-28 05:34:59 +00:00
test_workflow_collaboration_service.py test: use SQLite sessions in unit misc (#39119) 2026-07-21 03:20:59 +00:00
test_workflow_comment_service.py test: use sqlite3 session in test_workflow_comment_service (#38700) 2026-07-27 08:22:45 +00:00
test_workflow_generator_service.py perf(workflow-generator): parallelize node config generation (#38975) 2026-07-17 02:34:15 +00:00
test_workflow_node_execution_trace_service.py fix: preserve and display workflow retry details (#38854) 2026-07-15 05:58:37 +00:00
test_workflow_run_service_pause.py test: use SQLite sessions in services core (#39090) 2026-07-28 03:20:27 +00:00
test_workflow_run_service.py test: use sqlite3 session in test_workflow_run_service (#38701) 2026-07-27 08:19:32 +00:00
test_workflow_service.py feat(workflow): support LLM environment variables (#39125) 2026-08-04 06:17:13 +00:00
test_workspace_credit_pool.py feat: optimize integrations initial loading (#40118) 2026-08-07 02:06:25 +00:00
test_workspace_member_query_service.py refactor(api): extract workspace member listing into layered service (#39974) 2026-08-06 01:08:39 +00:00
test_workspace_member_role_resolver.py refactor(api): extract workspace member listing into layered service (#39974) 2026-08-06 01:08:39 +00:00
test_workspace_service.py chore: improve current workspace summary (#40121) 2026-08-07 03:08:55 +00:00