dify/api/tests/unit_tests/controllers/console
hjlarry 6b7574023e fix(workflow): enforce tenant access in online users query
Validate requested workflow_ids against current tenant before reading collaboration online-user state from Redis.

Move workflow access-id lookup into WorkflowService to keep controller thin and aligned with layering.

Limit query size, and stop exposing sid in REST response fields.

Add unit tests for inaccessible workflow filtering and workflow_ids limit checks.
2026-04-12 16:05:29 +08:00
..
app fix(workflow): enforce tenant access in online users query 2026-04-12 16:05:29 +08:00
auth test: migrate forgot password tests to testcontainers (#33972) 2026-03-24 23:34:13 +09:00
billing refactor: port reqparse to BaseModel (#28993) 2025-12-08 15:31:19 +09:00
datasets fix(api): prevent cross-tenant external API use-check disclosure (#34744) 2026-04-10 03:23:32 +00:00
explore test: migrate explore conversation controller tests to testcontainers (#34312) 2026-03-31 05:00:22 +00:00
tag refactor: use EnumText for Conversation/Message invoke_from and from_source (#33901) 2026-03-23 16:03:35 +09:00
workspace test: migrate tool provider controller tests to testcontainers (#34293) 2026-03-31 00:28:04 +00:00
__init__.py feat: return data_source_info and data_source_detail_dict (#29912) 2026-01-05 11:04:03 +08:00
test_admin.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_document_detail_api_data_source_info.py chore(api): align Python support with 3.12 (#34419) 2026-04-02 05:07:32 +00:00
test_extension.py chore(deps-dev): bump the dev group across 1 directory with 19 updates (#33525) 2026-03-16 20:31:58 +09:00
test_fastopenapi_ping.py feat: init fastopenapi (#30453) 2026-01-23 21:07:52 +09:00
test_fastopenapi_setup.py refactor: api/controllers/console/setup.py to ov3 (#31465) 2026-01-26 15:04:33 +08:00
test_fastopenapi_version.py refactor: api/controllers/console/version.py to v3 (#31463) 2026-01-26 15:04:25 +08:00
test_feature.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_files_security.py refactor: port api/fields/file_fields.py (#30638) 2026-01-06 22:55:58 +08:00
test_files.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_human_input_form.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_init_validate.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_remote_files.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_spec.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_version.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_workspace_account.py fix: fix orm_exc.DetachedInstanceError (#34904) 2026-04-10 07:13:59 +00:00
test_workspace_members.py refactor(api): tighten login and wrapper typing (#34447) 2026-04-02 09:36:58 +00:00
test_wraps.py refactor: select in console auth, setup and apikey (#33790) 2026-03-21 11:29:29 +09:00