dify/api/tests/unit_tests/controllers/console/app
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
..
__init__.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_annotation_api.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_annotation_security.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_app_response_models.py feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
test_audio_api.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_audio.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
test_conversation_api.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
test_conversation_read_timestamp.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
test_description_validation.py Exclude tests directory from pyright type checking (#26496) 2025-10-02 18:51:36 +08:00
test_generator_api.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
test_message_api.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_model_config_api.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
test_statistic_api.py test: unit test case for controllers.console.app module (#32247) 2026-03-10 00:54:47 +08:00
test_workflow_human_input_debug_api.py feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
test_workflow_pause_details_api.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00
test_workflow.py fix(workflow): enforce tenant access in online users query 2026-04-12 16:05:29 +08:00
test_wraps.py refactor: select in remaining console app controllers (#33969) 2026-03-24 02:53:05 +09:00
workflow_draft_variables_test.py refactor(api): use standalone graphon package (#34209) 2026-03-27 21:05:32 +00:00