DEV: Combine S3 system spec helpers into one (#29580)

It's annoying to have to do both of these every
time you write an S3 system spec, let's just do them
in one call instead.
This commit is contained in:
Martin Brennan
2024-11-05 09:28:14 +10:00
committed by GitHub
parent 1b5a7be3d4
commit badca20749
3 changed files with 9 additions and 19 deletions

View File

@ -127,7 +127,9 @@ module SystemHelpers
page.execute_script(js, selector, start, offset)
end
def setup_s3_system_test(enable_secure_uploads: false, enable_direct_s3_uploads: true)
def setup_or_skip_s3_system_test(enable_secure_uploads: false, enable_direct_s3_uploads: true)
skip_unless_s3_system_specs_enabled!
SiteSetting.enable_s3_uploads = true
SiteSetting.s3_upload_bucket = "discoursetest"