## Running the tests on a kind cluster Following are the instructions for running the test on a local kind cluster 1. Ensure your kubectl context is set to `kind-edge` 1. Ensure you have a postgres service accessible with configuration for connection from within k8s https://wiki.edge-infra.dev/dev/testing/running 1. Add the following flags to your `test/f2/config.json` file. This step will only need to be done once. ```json { "integration-level": 2, } ``` 1. Push gcloud sdk to local registry. This step will only need to be done once ```bash just push --bazel-configs=local //hack/deps:gcloud_container_push ``` 1. Push services to local registry: ```bash just push -v=100 --bazel-configs=local cmd/sds/emergencyaccess/userservice/... just push -v=100 --bazel-configs=local cmd/sds/emergencyaccess/authservice/... just push -v=100 --bazel-configs=local cmd/sds/emergencyaccess/rulesengine/... just push -v=100 --bazel-configs=local cmd/sds/emergencyaccess/eagateway/... just push --bazel-configs=local pkg/sds/emergencyaccess/ea_integration/v2/mockbffserver:container_push just push --bazel-configs=local cmd/edge/auth-proxy:container_push ``` 1. Run the tests: ```bash rosa --config test/f2/config.json pkg/sds/emergencyaccess/ea_integration/v2/... --workloads_repo=localhost:21700 ```