fix crl storage config name
This commit is contained in:
parent
7fbb8d05e0
commit
44d52ae601
@ -200,7 +200,7 @@ def make_crl_validator(app):
|
||||
app.crl_cache = NoOpCRLCache(logger=app.logger)
|
||||
else:
|
||||
crl_locations = []
|
||||
for filename in pathlib.Path(app.config["CRL_CONTAINER"]).glob("*.crl"):
|
||||
for filename in pathlib.Path(app.config["CRL_STORAGE_CONTAINER"]).glob("*.crl"):
|
||||
crl_locations.append(filename.absolute())
|
||||
app.crl_cache = CRLCache(
|
||||
app.config["CA_CHAIN"],
|
||||
|
@ -3,5 +3,5 @@ DEBUG = false
|
||||
PGHOST = postgreshost
|
||||
PGDATABASE = atat_test
|
||||
REDIS_URI = redis://redishost:6379
|
||||
CRL_CONTAINER = tests/fixtures/crl
|
||||
CRL_STORAGE_CONTAINER = tests/fixtures/crl
|
||||
WTF_CSRF_ENABLED = false
|
||||
|
@ -1,3 +1,3 @@
|
||||
[default]
|
||||
PGDATABASE = atat_selenium
|
||||
CRL_CONTAINER = tests/fixtures/crl
|
||||
CRL_STORAGE_CONTAINER = tests/fixtures/crl
|
||||
|
@ -2,6 +2,6 @@
|
||||
DEBUG = false
|
||||
ENVIRONMENT = test
|
||||
PGDATABASE = atat_test
|
||||
CRL_CONTAINER = tests/fixtures/crl
|
||||
CRL_STORAGE_CONTAINER = tests/fixtures/crl
|
||||
WTF_CSRF_ENABLED = false
|
||||
STORAGE_PROVIDER=LOCAL
|
||||
|
@ -31,7 +31,7 @@ def seed_roles():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
config = make_config({"DISABLE_CRL_CHECK": True})
|
||||
config = make_config({"DISABLE_CRL_CHECK": True, "CRL_STORAGE_PROVIDER": "LOCAL"})
|
||||
app = make_app(config)
|
||||
with app.app_context():
|
||||
seed_roles()
|
||||
|
@ -22,7 +22,9 @@ def app(request):
|
||||
upload_dir = TemporaryDirectory()
|
||||
|
||||
config = make_config()
|
||||
config.update({"STORAGE_CONTAINER": upload_dir.name})
|
||||
config.update(
|
||||
{"STORAGE_CONTAINER": upload_dir.name, "CRL_STORAGE_PROVIDER": "LOCAL"}
|
||||
)
|
||||
|
||||
_app = make_app(config)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user