-
Notifications
You must be signed in to change notification settings - Fork 5
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
test.sh fails when run with -p #54
Comments
Yeah, this was earlier command, and actually removed from current setup: backend-examplar-2018/bin/test.sh Line 16 in b251b21
We need to build out. |
so general scaffold we will need, following discussion in #51: the
since we are using the
|
I made an attempt at the travis configuration and have something working now. I basically just followed the patterns I found in the budget and transporation backend repos you referenced as example, using the Docker images and bin/*.sh scripts that were already in our repos. I know it may not be exactly what we want to go with but I figured it would be worth getting the major components working. If you look in the .travis.yml and the test-entrypoint.sh you will see that it is very similar to what you posted above.
Travis builds the production API image and then runs any Django unit tests in found in After that The only piece that is not accounted for are the database credentials, which I currently am resorting to hard-coding securely in the Travis build config settings. |
Is this something generalizable and worth adding to the examplar? It seems like it would be. |
awesome, going in the right direction. A few things.
|
Cool, once we settle on the details and have it working how you would like I was thinking that I would open a PR to merge this into the exemplar repo. Then generated quickstart API apps would take advantage of the travis functionality straight out of the box.
I will remove the
Correct, I have them in the Travis UI settings, secured with the privacy lock so they aren't advertised in the logs.
I think it should still be okay. The only thing I really took from their pattern was how to structure the unit test directory. Everything else is either blank or laid out according to Django convention. What I have now is a
I have since added the
OK. @znmeb can probably handle changing the image name if necessary. Do you want me to create an issue so we can keep track of that requirement? |
Definitely create an issue - I read GitHub more than Slack! |
Yeah ... If nobody else wants it I'll take it |
I believe the issues discussed are resolved with #60 |
We will need to confirm this pattern works for projects connecting to the current database server, with read-only credentials, and running an actual test. I had run into issues, which is why currently using py.test on transportation-systems-backend. |
This issue will be resolved when related issue #82 becomes resolved and we settle on a read-only access DB unit testing solution. (Probably pytest) |
Running
bin/test.sh -p
causes the following command to be run:docker-compose -p tests run --entrypoint /code/bin/test-entrypoint.sh -p 8000 --all -f
This command is not correct, and results in the following error output:
The text was updated successfully, but these errors were encountered: