-
Notifications
You must be signed in to change notification settings - Fork 327
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
Webapp test #243
Webapp test #243
Conversation
The build failed for a weird reason:
|
Thanks for the contribution! That CircleCI test failure is really odd. I think it must have been a temporary fluke on CircleCI's end. After triggering a retry in Circle it looks like it's successfully building (although, unfortunately it took 2 retries, since the first one errored on some integration tests that do seem to randomly fail in the CI environment--we obviously need to debug that to eliminate those). I did have some questions/comments about this pull request:
Sorry for the long response, but does all that make sense? Let us know if you have any questions. But thanks again for diving in and for the contributions! |
Oh, and regarding NodeJS in the tests (what Circle was complaining about), NodeJS is still used by our test suite for the proxy layer and full stack integration tests (eg, with all the components like nginx running). These are the tests located in the top-level These tests are still in NodeJS primarily because it allowed us to keep our test suite the same as we underwent the transition to Lua/OpenResty. By keeping the test suite consistent, it helped give us a lot more confidence in that transition, since we could run the exact same tests against our old and new stack simultaneously. But now that have completed that transition, I think whether NodeJS is the best fit longer-term for those types of proxy tests is a good question (since it adds another language to the mix). I'll add this to the roadmap of things to consider (although we don't have any immediate plans to change those tests, since there are a lot of them). Hope that makes sense, but sorry for the confusion! |
Thanks you for your feedback:
I will revert my first two commits I understand about the tests in nodejs. You run the tests in the vagrant VM ? |
ping @GUI |
👍 Thanks! Yes, we run tests within the Vagrant VM. I added some additional docs about running the tests here (sorry this wasn't well documented): https://api-umbrella.readthedocs.io/en/latest/developer/testing.html So assuming we can get the Vagrant environment working for you, then running tests inside the Vagrant VM might be the best supported option, since it has the full environment for running both the web-app tests, as well as the proxy/integration tests. However, I am still interested in this Docker testing environment for the web-app you've setup, since that would seem to have benefits over the vagrant environment (which is slow to setup and sometimes finicky to get initially built). So I've gone head and merged this, but tried to clarify that this approach isn't fully supported for the entire test suite. But if you are just focused on the web-app, and this setup working for you, then I'd go ahead and use this approach if it's easier than the Vagrant environment. And separate from this, I think we can continue to look into what a full Docker development environment might look like for the rest of the stack (which would hopefully make getting started with development quicker and easier). |
In order to easily run the tests of the web application