fix: adjust storage class path to use SOFTWARE_SECURE settings

This commit is contained in:
Daniel Wong
2025-08-06 13:22:07 -06:00
parent 82f5955ae2
commit 7479beb29d
3 changed files with 6 additions and 6 deletions

View File

@@ -928,7 +928,7 @@ class SoftwareSecurePhotoVerification(PhotoVerification):
return resolve_storage_backend(
storage_key="verify_student",
legacy_setting_key="VERIFY_STUDENT",
legacy_sec_setting_keys=["STORAGE_CLASS"],
legacy_sec_setting_keys=["SOFTWARE_SECURE", "STORAGE_CLASS"],
options=storage_kwargs
)

View File

@@ -45,9 +45,9 @@ iwIDAQAB
"AWS_SECRET_KEY": "FAKESECRETKEY",
"S3_BUCKET": "fake-bucket",
"CERT_VERIFICATION_PATH": False,
"STORAGE_CLASS": "storages.backends.s3boto3.S3Boto3Storage"
},
"DAYS_GOOD_FOR": 10,
"STORAGE_CLASS": "storages.backends.s3boto3.S3Boto3Storage"
"DAYS_GOOD_FOR": 10
}

View File

@@ -1299,9 +1299,9 @@ class TestSubmitPhotosForVerification(MockS3Boto3Mixin, TestVerificationBase):
"AWS_SECRET_KEY": "fc595fc657c04437bb23495d8fe64881",
"S3_BUCKET": "test.example.com",
"CERT_VERIFICATION_PATH": False,
"STORAGE_CLASS": "storages.backends.s3boto3.S3Boto3Storage",
},
"DAYS_GOOD_FOR": 10,
"STORAGE_CLASS": "storages.backends.s3boto3.S3Boto3Storage"
})
@httpretty.activate
def test_submit_photos_for_reverification(self):
@@ -1854,9 +1854,9 @@ class TestReverifyView(TestVerificationBase):
"AWS_ACCESS_KEY": "c987c7efe35c403caa821f7328febfa1",
"AWS_SECRET_KEY": "fc595fc657c04437bb23495d8fe64881",
"CERT_VERIFICATION_PATH": False,
"STORAGE_CLASS": 'storages.backends.s3boto3.S3Boto3Storage',
},
"DAYS_GOOD_FOR": 10,
"STORAGE_CLASS": 'storages.backends.s3boto3.S3Boto3Storage',
"STORAGE_KWARGS": {
'bucket': 'test-idv',
},
@@ -1918,9 +1918,9 @@ class TestPhotoURLView(TestVerificationBase):
"AWS_SECRET_KEY": "fc595fc657c04437bb23495d8fe64881",
"S3_BUCKET": "test-idv",
"CERT_VERIFICATION_PATH": False,
"STORAGE_CLASS": 'storages.backends.s3boto3.S3Boto3Storage',
},
"DAYS_GOOD_FOR": 10,
"STORAGE_CLASS": 'storages.backends.s3boto3.S3Boto3Storage',
"STORAGE_KWARGS": {
'bucket': 'test-idv',
},