fix crl storage config name

This commit is contained in:
dandds 2019-03-01 15:10:56 -05:00
parent 7fbb8d05e0
commit 44d52ae601
6 changed files with 8 additions and 6 deletions

View File

@ -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"],

View File

@ -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

View File

@ -1,3 +1,3 @@
[default]
PGDATABASE = atat_selenium
CRL_CONTAINER = tests/fixtures/crl
CRL_STORAGE_CONTAINER = tests/fixtures/crl

View File

@ -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

View File

@ -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()

View File

@ -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)