COPY: secure media -> secure uploads (#24643)

Fixing up the last few holdouts
This commit is contained in:
Martin Brennan 2023-11-30 14:58:55 +10:00 committed by GitHub
parent b00dbaa6c9
commit dc8a727b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -233,7 +233,7 @@ en:
default_tags_already_selected: "You cannot select a tag used in another list." default_tags_already_selected: "You cannot select a tag used in another list."
s3_upload_bucket_is_required: "You cannot enable uploads to S3 unless you've provided the 's3_upload_bucket'." s3_upload_bucket_is_required: "You cannot enable uploads to S3 unless you've provided the 's3_upload_bucket'."
enable_s3_uploads_is_required: "You cannot enable usage of the S3 inventory unless you've enabled S3 uploads." enable_s3_uploads_is_required: "You cannot enable usage of the S3 inventory unless you've enabled S3 uploads."
page_publishing_requirements: "Page publishing cannot be enabled if secure media is enabled." page_publishing_requirements: "Page publishing cannot be enabled if secure uploads is enabled."
s3_backup_requires_s3_settings: "You cannot use S3 as backup location unless you've provided the '%{setting_name}'." s3_backup_requires_s3_settings: "You cannot use S3 as backup location unless you've provided the '%{setting_name}'."
s3_bucket_reused: "You cannot use the same bucket for 's3_upload_bucket' and 's3_backup_bucket'. Choose a different bucket or use a different path for each bucket." s3_bucket_reused: "You cannot use the same bucket for 's3_upload_bucket' and 's3_backup_bucket'. Choose a different bucket or use a different path for each bucket."
secure_uploads_requirements: "S3 uploads and S3 ACLs must be enabled before enabling secure uploads." secure_uploads_requirements: "S3 uploads and S3 ACLs must be enabled before enabling secure uploads."

View File

@ -236,8 +236,8 @@ describe Chat do
end end
end end
describe "secure media compatibility" do describe "secure uploads compatibility" do
it "disables chat uploads if secure media changes from disabled to enabled" do it "disables chat uploads if secure uploads changes from disabled to enabled" do
enable_secure_uploads enable_secure_uploads
expect(SiteSetting.chat_allow_uploads).to eq(false) expect(SiteSetting.chat_allow_uploads).to eq(false)
last_history = UserHistory.last last_history = UserHistory.last

View File

@ -6,7 +6,7 @@ RSpec.describe Chat::AllowUploadsValidator do
expect(validator.valid_value?("f")).to eq(true) expect(validator.valid_value?("f")).to eq(true)
end end
context "when secure media is enabled" do context "when secure uploads is enabled" do
before do before do
SiteSetting.chat_allow_uploads = false SiteSetting.chat_allow_uploads = false
enable_secure_uploads enable_secure_uploads