@@ -27,18 +27,39 @@ API_ROOT = {{ api_root | repr }}
2727{% endif %}
2828
2929{% if s 3_test | default (false ) %}
30+ MEDIA_ROOT: ""
31+ S3_USE_SIGV4 = True
32+ {% if test_storages_compat_layer is defined and test_storages_compat_layer %}
33+ STORAGES = {
34+ "default": {
35+ "BACKEND": "storages.backends.s3boto3.S3Boto3Storage",
36+ "OPTIONS": {
37+ "access_key": "{{ minio_access_key }}",
38+ "secret_key": "{{ minio_secret_key }}",
39+ "region_name": "eu-central-1",
40+ "addressing_style": "path",
41+ "signature_version": "s3v4",
42+ "bucket_name": "pulp3",
43+ "endpoint_url": "http://minio:9000",
44+ "default_acl": "@none None",
45+ },
46+ },
47+ "staticfiles": {
48+ "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
49+ },
50+ }
51+ {% else %}
3052DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
31- MEDIA_ROOT = ""
3253AWS_ACCESS_KEY_ID = "{{ minio_access_key }}"
3354AWS_SECRET_ACCESS_KEY = "{{ minio_secret_key }}"
3455AWS_S3_REGION_NAME = "eu-central-1"
3556AWS_S3_ADDRESSING_STYLE = "path"
36- S3_USE_SIGV4 = True
3757AWS_S3_SIGNATURE_VERSION = "s3v4"
3858AWS_STORAGE_BUCKET_NAME = "pulp3"
3959AWS_S3_ENDPOINT_URL = "http://minio:9000"
4060AWS_DEFAULT_ACL = "@none None"
4161{% endif %}
62+ {% endif %}
4263
4364{% if azure_test | default (false ) %}
4465DEFAULT_FILE_STORAGE = "storages.backends.azure_storage.AzureStorage"
0 commit comments