zuul-jobs/roles/upload-logs-base/library
James E. Blair 26bf1e516e Fix CORS and endpoint in AWS log upload
The AWS log upload module does not behave like the rest of the
modules: it does not set CORS headers, which means that logs will
not be usable in the Zuul web UI without additional manual
configuration.  The other uploaders all set CORS settings
automatically.

Correct this in the same way that we do for other clouds.

Additionally, if an S3 bucket is created outside of us-east-1, then
objects in it must be addressed using the bucket name as hostname,
rather than the bare host s3.amazonaws.com.  Update the returned
URL to use the bucket hostname.  This works as well for buckets in
us-east-1.

Also, fix the command line test invocation.

Change-Id: Id92f3cf506b442d0ee5932c6e9d931df19c2cc71
2022-09-23 08:11:46 -07:00
..
test-fixtures Use urlencoded filenames in test fixtures 2021-01-20 08:37:26 +01:00
__init__.py Merge upload logs modules into common role 2020-09-25 13:21:12 +02:00
delete_swift_container.py Remove shebang from all python ansible modules 2022-09-15 13:48:10 -07:00
filefixture.py Use urlencoded filenames in test fixtures 2021-01-20 08:37:26 +01:00
test_index.py Use urlencoded filenames in test fixtures 2021-01-20 08:37:26 +01:00
test_zuul_azure_upload.py Add upload-logs-azure role 2021-03-30 22:27:25 -07:00
test_zuul_google_storage_upload.py GCS logs: more robust Credential class 2021-02-19 09:53:08 -08:00
test_zuul_ibm_upload.py Add upload-logs-ibm role 2022-04-11 14:20:49 -07:00
test_zuul_s3_upload.py Consolidate common log upload code into module_utils 2020-10-02 12:40:14 +02:00
test_zuul_swift_upload.py Consolidate common log upload code into module_utils 2020-10-02 12:40:14 +02:00
zuul_azure_upload.py Remove shebang from all python ansible modules 2022-09-15 13:48:10 -07:00
zuul_google_storage_upload.py Remove shebang from all python ansible modules 2022-09-15 13:48:10 -07:00
zuul_ibm_upload.py Remove shebang from all python ansible modules 2022-09-15 13:48:10 -07:00
zuul_s3_upload.py Fix CORS and endpoint in AWS log upload 2022-09-23 08:11:46 -07:00
zuul_swift_upload.py Remove shebang from all python ansible modules 2022-09-15 13:48:10 -07:00