Martin Brennan a059c7251f
DEV: Add tests to S3Helper.ensure_cors and move rules to class (#14767)
In preparation for adding automatic CORS rules creation
for direct S3 uploads, I am adding tests here and moving the
CORS rule definitions into a dedicated class so they are all
in the one place.

There is a problem with ensure_cors! as well -- if there is
already a CORS rule defined (presumably the asset one) then
we do nothing and do not apply the new rule. This means that
the S3BackupStore.ensure_cors method does nothing right now
if the assets rule is already defined, and it will mean the
same for any direct S3 upload rules I add for uppy. We need
to be able to add more rules, not just one.

This is not a problem on our hosting because we define the
rules at an infra level.
2021-11-01 08:23:13 +10:00
..
2021-10-27 11:39:28 +03:00
2021-10-27 11:39:28 +03:00
2021-10-27 11:39:28 +03:00
2020-01-15 11:27:12 +01:00
2021-10-27 11:39:28 +03:00
2021-08-10 18:30:34 +04:00
2021-05-31 10:22:50 +08:00
2019-05-22 17:39:44 +03:00
2020-05-05 13:46:57 +10:00
2021-06-21 11:06:58 +08:00
2020-07-21 15:55:03 +08:00
2020-04-30 16:48:53 +10:00