The e2e tests run inside of a k8s cluster. They will run against whatever cluster your current kubectl context is set to. This can be an external k8s cluster or a local one (using something like minikube or k3d).
Note: If running against a local k8s cluster, make sure you have plenty of ram allocated for docker, 12 gb if running individual tests and a lot more if you run parallel test like the ones in make test_smoke since it runs multiple tests in parallel
Steps to run the e2e tests:
- Build using the
make buildcommand. If you have previously built and made changes to artficats and want to make sure you have a clean starting point you can runmake artifacts_cleanbefore building. - Make sure your kubectl context is pointing to the cluster you want to run tests against.
- Run a test, you have several options
make test_smokewill run the ocr2, ocr2 proxy, and gauntlet e2e tests (all three run in parallel)make test_ocrwill run the ocr2 e2e testsmake test_ocr_proxywill run the ocr2 tests using a proxymake test_gauntletwill run the gauntlet e2e testsmake test_migrationwill run the migration e2e testsmake test_chaoswill run the chaos tests
You can always look at the Makefile in this repo to see other commands or tests that have been added since this readme was last updated.