From 8c893270f4b25e33cf8f3cec4e137288c507f00a Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Tue, 26 Aug 2025 15:51:59 -0500 Subject: [PATCH] Update CONTRIBUTING.md with instructions on how to run e2e tests locally --- CONTRIBUTING.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 753c22d..80fc075 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,18 @@ Thank you for your interest in contributing to the 1Password Kubernetes Operator ## Testing -- For functional testing, run the local version of the operator. From the project root: +To run e2e tests: + +1. [Install `kind`](https://kind.sigs.k8s.io/docs/user/quick-start/#installing-with-a-package-manager) to spin up local Kubernetes cluster. +2. `export OP_CONNECT_TOKEN=` +3. `export OP_SERVICE_ACCOUNT_TOKEN=` +4. `make test-e2e` + +In case tests are failed, before running them again, reset kind using `make cleanup-test-e2e` + +---- + +For functional testing, run the local version of the operator. From the project root: ```sh # Go to the K8s environment (e.g. minikube) @@ -24,6 +35,8 @@ Thank you for your interest in contributing to the 1Password Kubernetes Operator 1. Rebuild the Docker image by running `make docker-build` 2. Restart deployment `make restart` +---- + - For testing the changes made to the `OnePasswordItem` Custom Resource Definition (CRD), you need to re-generate the object: ```sh make manifests