You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently added a test that runs the docker.d/init.sh script. The problem is that it relies on a ton of environment variables that are populated from cloudops-infra. To get around this, I basically just manually created a giant context dict containing dummy values for everything.
Ben had the idea of trying to fetch these directly (would need a Github API token) and using the actual variables fetched from the cloudops-infra repo. Not only would this make manual maintenance less of a burden, but it would turn test_init.sh into an integration test that covers parts of the deploy pipeline with cloudops-infra as well.
Note that the values come from SOPS, so we'd obviously still need dummy values for the keys.. But these could be autogenerated for any keys we detect.
The text was updated successfully, but these errors were encountered:
ahal
changed the title
Populate cloudops-infra env into tests/test_init.py
Feed cloudops-infra env into tests/test_init.pyJan 23, 2023
I recently added a test that runs the
docker.d/init.sh
script. The problem is that it relies on a ton of environment variables that are populated fromcloudops-infra
. To get around this, I basically just manually created a giant context dict containing dummy values for everything.Ben had the idea of trying to fetch these directly (would need a Github API token) and using the actual variables fetched from the
cloudops-infra
repo. Not only would this make manual maintenance less of a burden, but it would turntest_init.sh
into an integration test that covers parts of the deploy pipeline with cloudops-infra as well.Note that the values come from SOPS, so we'd obviously still need dummy values for the keys.. But these could be autogenerated for any keys we detect.
The text was updated successfully, but these errors were encountered: