This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/spec/lib/backup_restore
Martin Brennan ac12948e8d
FIX: Allow S3Helper.ensure_cors! to apply more than one rule
The ensure_cors! function needs to be able to add CORS
rules for the S3 bucket for 3 things now:

* assets
* direct S3 backups
* direct S3 uploads

As it is, only one rule can be applied, which is generally
the assets rule as it is called first. This commit changes
the ensure_cors! method to be able to apply new rules as
well as the existing ones.

Also in this commit we are calling ensure_cors! when creating
presigned PUT and multipart uploads when uploading direct to
S3, so the rules definitely exist to avoid errors in the process.
2021-11-01 16:04:33 +10:00
..
backup_file_handler_multisite_spec.rb DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
backup_file_handler_spec.rb DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
backuper_spec.rb FEATURE: Attach backup log as upload (#13849) 2021-08-03 20:06:50 +03:00
database_restorer_multisite_spec.rb DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
database_restorer_spec.rb DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
local_backup_store_spec.rb DEV: Don't user before(:all)/after(:all) (#13389) 2021-06-15 17:25:06 +02:00
meta_data_handler_spec.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
s3_backup_store_spec.rb DEV: Don't user before(:all)/after(:all) (#13389) 2021-06-15 17:25:06 +02:00
shared_context_for_backup_restore.rb FIX: BackupRestore::DatabaseRestorer failures with Ruby 3 2021-10-12 17:25:51 -04:00
shared_examples_for_backup_store.rb FIX: Allow S3Helper.ensure_cors! to apply more than one rule 2021-11-01 16:04:33 +10:00
system_interface_multisite_spec.rb DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
system_interface_spec.rb DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
uploads_restorer_spec.rb DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00