-
Notifications
You must be signed in to change notification settings - Fork 17
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 kit e2e #337
Test kit e2e #337
Conversation
libs/external-db-firestore/tests/e2e-testkit/firestore_resources.ts
Outdated
Show resolved
Hide resolved
libs/external-db-spanner/tests/e2e-testkit/spanner_resources.ts
Outdated
Show resolved
Hide resolved
In addition, some of the docker compose files contain the networks section and some do not, why this inconsistency? |
Please add details about what must be done for the MongoDB's tests to run if the tests were run in the previous way |
fixed |
done |
the structure changed as follows:
every library now includes
tests/e2e-testkit
directory that contains the docker-compose of each implementationand the implementation resources with this interface:
There is new class E2EResources (TBD), that receives implementation resources, and the main function and provides all the needed methods for e2e tests.
You can see a usage to the test kit in #338 draft PR.
Important note about MongoDB:
To make MongoDB tests pass, a first step, you need to remove the previous MongoDB image and the volume init-mongo.js from Docker, since while the location of the docker-compose and volume have changed, as long as your local machine still has the previous image and volume, it won't update it, and you'll receive Unauthorized error.