diff --git a/doc/developer_notes.md b/doc/developer_notes.md index cd2c7370..3d25e6c3 100644 --- a/doc/developer_notes.md +++ b/doc/developer_notes.md @@ -78,4 +78,13 @@ EOF 2. This script leverages the `whereaboutsScaleNAD` and `scaleTestDeployment` yamls in /yamls 3. To modify the number of pods spun by the script, change the replicas value in the `scaleTestDeployment` yaml +## Running whereabouts e2e locally +1. To run whereabouts e2e locally you need the godotenv package installed + run `go install github.com/joho/godotenv/cmd/godotenv@latest` + godot env allows you to pass an env file to go test +2. In the whereabouts dir, run 'make kind' -> this will create a kind cluster running whereabouts +3. cd to the /e2e dir and create a .env file with this value `KUBECONFIG: $HOME/.kube/config` -> this is where kind writes the kubeconfig by default +4. run [[ ! -z "$KUBECONFIG" ]] && echo "$KUBECONFIG" || echo "$HOME/.kube/config" to find the location of your kubeconfig +5. add KUBECONFIG: to your .env +6. run godotenv -f go test -v . -timeout=1h