diff --git a/scripts/build-package b/scripts/build-package index 2fffabcc..7a81f3fc 100755 --- a/scripts/build-package +++ b/scripts/build-package @@ -9,7 +9,7 @@ export EXODUS_CONFIG_CACHE_TTL=${EXODUS_CONFIG_CACHE_TTL:-2} pip install --require-hashes -r requirements.txt --target ./package pip install --no-deps --target ./package . cp ./configuration/exodus-lambda-deploy.yaml ./package -envsubst < ./configuration/lambda_config.json > ./package/lambda_config.json +envsubst < ./configuration/lambda_config.template > ./package/lambda_config.json aws cloudformation package \ --template ./package/exodus-lambda-deploy.yaml \ --s3-bucket $PROJECT-pipeline-artifacts \ diff --git a/test-requirements.txt b/test-requirements.txt index 7ef1ad1d..88fb6dac 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -28,9 +28,9 @@ charset-normalizer==2.0.7 \ --hash=sha256:e019de665e2bcf9c2b64e2e5aa025fa991da8720daa3c1138cadd2fd1856aed0 \ --hash=sha256:f7af805c321bfa1ce6714c51f254e0d5bb5e5834039bc17db7ebe3a4cec9492b # via requests -click==8.0.1 \ - --hash=sha256:8c04c11192119b1ef78ea049e0a6f0463e4c48ef00a30160c704337586f3ad7a \ - --hash=sha256:fba402a4a47334742d782209a7c79bc448911afe1149d07bdabdf480b3e2f4b6 +click==8.0.3 \ + --hash=sha256:353f466495adaeb40b6b5f592f9f91cb22372351c84caeb068132442a4518ef3 \ + --hash=sha256:410e932b050f5eed773c4cda94de75971c89cdb3155a72a0831139a79e5ecb5b # via black coverage==5.5 \ --hash=sha256:004d1880bed2d97151facef49f08e255a20ceb6f9432df75f4eef018fdd5a78c \ diff --git a/tests/conftest.py b/tests/conftest.py index b0dd7dfa..35f6058e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -61,7 +61,7 @@ def mock_conf_file(): test_env["ORIGIN_REQUEST_LOGGER_LEVEL"] = "DEBUG" test_env["EXODUS_HEADERS_MAX_AGE"] = "600" - cmd = "envsubst < ./configuration/lambda_config.json > {temp_path}" + cmd = "envsubst < ./configuration/lambda_config.template > {temp_path}" cmd = cmd.format(temp_path=temp_file.name) subprocess.run( diff --git a/tox.ini b/tox.ini index ab6c04a9..786df009 100644 --- a/tox.ini +++ b/tox.ini @@ -50,6 +50,12 @@ commands= pip install --no-deps --target ./package . # Always using hardcoded config for now. + export ORIGIN_RESPONSE_LOGGER_LEVEL=${ORIGIN_RESPONSE_LOGGER_LEVEL:-WARNING} + export ORIGIN_REQUEST_LOGGER_LEVEL=${ORIGIN_REQUEST_LOGGER_LEVEL:-WARNING} + export EXODUS_HEADERS_MAX_AGE=${EXODUS_HEADERS_MAX_AGE:-600} + export EXODUS_CONFIG_CACHE_TTL=${EXODUS_CONFIG_CACHE_TTL:-2} + + envsubst < configuration/lambda_config.template > configuration/lambda_config.json cp configuration/lambda_config.json package sh -c 'cd package && zip -r ../package.zip .'