Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f59b94f

Browse files
committedApr 11, 2023
Makefile and README updates for kuttl
1 parent af2c718 commit f59b94f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
 

‎Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ test: manifests envtest generate fmt vet
114114
junit: gotestsum manifests envtest generate fmt vet
115115
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" $(PROJECT_DIR)/testbin/bin/gotestsum --junitfile artifacts/junit-ginko.xml -- ./... -coverprofile cover.out
116116

117+
kuttl: manifests envtest generate fmt vet
118+
kubectl kuttl test --config kuttl-config.yml ./tests/e2e
119+
117120
##@ Build
118121

119122
build: generate fmt vet ## Build manager binary.

‎README.md

+14
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,17 @@ If you want to access the app from your computer, you have to update /etc/hosts
8383
```
8484

8585
Once you update it you can access the app from `https://env-boot/insights/inventory`
86+
87+
## E2E testing with kuttl
88+
89+
[Kuttl](https://kuttl.dev/) is an end to end testing framework for Kubernetes operators. We hope to provide full test coverage for the Frontend Operator with kuttl.
90+
91+
To run the kuttl tests you'll need to be running the operator and Clowder in minikube as shown in the directions above. You also need to make sure you [have kuttl installed on your machine](https://kuttl.dev/docs/cli.html#setup-the-kuttl-kubectl-plugin).
92+
93+
Once all that is in place you can run the kuttl tests:
94+
95+
```bash
96+
$ make kuttl
97+
```
98+
Friendly reminder: make sure you have the frontend operator runnning (`make run-local`) before you run the tests or they will never work and you'll go nuts trying to figure out why.
99+

0 commit comments

Comments
 (0)
Please sign in to comment.