Project

General

Profile

Actions

Testing #2795

closed

[PostgreSQL]: Several failing controller tests w.r.t. attachments

Added by liaham 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/08/2025
Due date:
01/09/2025
% Done:

100%

Estimated time:
Compatible Redmine Version:
5.1.z

Description

 FAIL AttachmentsControllerTest#test_download_all_with_maximum_bulk_download_size_larger_than_attachments (11.46s)
        Expected response to be a <3XX: redirect>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:653:in `block in test_download_all_with_maximum_bulk_download_size_larger_than_attachments'
        test/test_helper.rb:102:in `with_settings'
        test/functional/attachments_controller_test.rb:643:in `test_download_all_with_maximum_bulk_download_size_larger_than_attachments'

 FAIL AttachmentsControllerTest#test_download_all_with_valid_container (11.86s)
        Expected response to be a <200: OK>, but was a <404: Not Found>.
        Expected: 200
          Actual: 404
        test/functional/attachments_controller_test.rb:595:in `test_download_all_with_valid_container'

 FAIL AttachmentsControllerTest#test_thumbnail_should_round_size (11.91s)
        not all expectations were satisfied
        unsatisfied expectations:
        - expected exactly once, invoked never: Redmine::Thumbnail.generate(arguments_accepted_by_custom_matching_block)
        test/functional/attachments_controller_test.rb:402:in `test_thumbnail_should_round_size'

 FAIL AttachmentsControllerTest#test_show_image (11.96s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:241:in `test_show_image'

 FAIL AttachmentsControllerTest#test_download_all_redirects_to_container_url_on_error (12.30s)
        Expected response to be a <3XX: redirect>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:669:in `block in test_download_all_redirects_to_container_url_on_error'
        test/test_helper.rb:102:in `with_settings'
        test/functional/attachments_controller_test.rb:659:in `test_download_all_redirects_to_container_url_on_error'

 FAIL AttachmentsControllerTest#test_download_should_assign_better_content_type_than_application_octet_stream (12.34s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:342:in `test_download_should_assign_better_content_type_than_application_octet_stream'

 FAIL AttachmentsControllerTest#test_show_text_file (12.44s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:145:in `test_show_text_file'

 FAIL AttachmentsControllerTest#test_show_file_from_private_issue_without_permission (12.49s)
        Expected response to be a <3XX: redirect>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:255:in `test_show_file_from_private_issue_without_permission'

 FAIL AttachmentsControllerTest#test_show_should_save_diff_type_as_user_preference (12.60s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:108:in `test_show_should_save_diff_type_as_user_preference'

 FAIL AttachmentsControllerTest#test_thumbnail_should_be_denied_without_permission (12.69s)
        Expected response to be a <3XX: redirect>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:443:in `test_thumbnail_should_be_denied_without_permission'

 FAIL AttachmentsControllerTest#test_show_file_from_private_issue_with_permission (12.80s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:261:in `test_show_file_from_private_issue_with_permission'

 FAIL AttachmentsControllerTest#test_show_diff_latin_1 (12.95s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:85:in `block (2 levels) in test_show_diff_latin_1'
        test/functional/attachments_controller_test.rb:76:in `each'
        test/functional/attachments_controller_test.rb:76:in `block in test_show_diff_latin_1'
        test/test_helper.rb:102:in `with_settings'
        test/functional/attachments_controller_test.rb:75:in `test_show_diff_latin_1'

 FAIL AttachmentsControllerTest#test_download_should_assign_content_type_if_blank (13.10s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:335:in `test_download_should_assign_content_type_if_blank'

 FAIL AttachmentsControllerTest#test_show_renders_pagination (13.13s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:295:in `test_show_renders_pagination'

 FAIL AttachmentsControllerTest#test_thumbnail (13.18s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:373:in `test_thumbnail'

 FAIL AttachmentsControllerTest#test_thumbnail_should_not_exceed_maximum_size (13.23s)
        not all expectations were satisfied
        unsatisfied expectations:
        - expected exactly once, invoked never: Redmine::Thumbnail.generate(arguments_accepted_by_custom_matching_block)
        test/functional/attachments_controller_test.rb:390:in `test_thumbnail_should_not_exceed_maximum_size'

 FAIL AttachmentsControllerTest#test_show_diff_replace_cannot_convert_content (13.28s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:65:in `block (2 levels) in test_show_diff_replace_cannot_convert_content'
        test/functional/attachments_controller_test.rb:56:in `each'
        test/functional/attachments_controller_test.rb:56:in `block in test_show_diff_replace_cannot_convert_content'
        test/test_helper.rb:102:in `with_settings'
        test/functional/attachments_controller_test.rb:55:in `test_show_diff_replace_cannot_convert_content'

 FAIL AttachmentsControllerTest#test_show_text_file_should_show_other_if_too_big (13.38s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:206:in `block in test_show_text_file_should_show_other_if_too_big'
        test/test_helper.rb:102:in `with_settings'
        test/functional/attachments_controller_test.rb:203:in `test_show_text_file_should_show_other_if_too_big'

 FAIL AttachmentsControllerTest#test_show_diff (13.42s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:46:in `block in test_show_diff'
        test/functional/attachments_controller_test.rb:37:in `each'
        test/functional/attachments_controller_test.rb:37:in `test_show_diff'

 FAIL AttachmentsControllerTest#test_download_text_file (13.58s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:303:in `test_download_text_file'

 FAIL AttachmentsControllerTest#test_download_should_assign_application_octet_stream_if_content_type_is_not_determined (13.78s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:348:in `test_download_should_assign_application_octet_stream_if_content_type_is_not_determined'

 FAIL AttachmentsControllerTest#test_show_issue_attachment_should_highlight_issues_menu_item (13.91s)
        Expected response to be a <2XX: success>, but was a <404: Not Found>
        test/functional/attachments_controller_test.rb:284:in `test_show_issue_attachment_should_highlight_issues_menu_item'
Actions

Also available in: Atom PDF