9c50c003a3
This commit introduces a comprehensive suite of integration tests for the case closing functionality. These tests cover various scenarios including: - Successful case closure with proper file writing and redirection. - Handling of invalid inputs like non-UUIDs or cases without recordings. - Authentication and authorization checks, ensuring only the case owner can close it. - Error handling for attempting to close a case twice or when the LLM service is unavailable. - Verification of the analysis worker's interaction with the mocked LLM. - Testing the recovery mechanism for re-enqueuing pending analyses. - Validating the document view displays the latest version.