-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local smoke tests #1923
local smoke tests #1923
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I was hoping notify-dev could take a look to give the final seal of approval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - works well locally! A couple of questions about docs to make it clearer to devs how to leverage all the goodies in here, but that doesn't really need to be part of this PR!
@@ -25,6 +25,7 @@ echo -e "complete -F __start_kubectl k" >> ~/.zshrc | |||
|
|||
# Smoke test | |||
# requires adding files .env_staging and .env_prod to the root of the project | |||
echo -e "alias smoke-local='cd /workspace && cp .env_smoke_local tests_smoke/.env && poetry run make smoke-test-local'" >> ~/.zshrc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some nice automation here regarding running the smoke tests in the different environments. Should we add some sort of docs so devs are aware they can do this? Maybe a bit about how/where to store the environment-specific env files?
Maybe its obvious, but it might also be nice to let people know they will need to create a service, some templates, and an API key in order to run them locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes! good idea - I've added a README.
Summary | Résumé
add smoke testing local api.
.env_smoke_local
to send yourself emailssmoke-local
alias will send the emails / texts but not verify success (since we don't run the delivery callbacks locally)Makefile
to send those locally as well (we typically don't worry about testing them locally unless we're messing around with document-download-api)Test instructions | Instructions pour tester la modification
.env_smoke_local
filemake run
andmake run-celery-local-filtered
smoke-local