@@ -9,8 +9,8 @@ realized that is is very important to have a clean environment to work, and as s
99adopted a strategy that makes it easier for everyone to contribute.
1010
1111This strategy is based on using
12- [ ` operator-sdk ` ] ( https://github.com/operator-framework/operator-sdk ) for running
13- the tests, and making the test-runner itself run as a Kubernetes Pod. This
12+ [ ` envtest ` ] ( https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/envtest ) for setting up the tests
13+ and ` go test ` for running the tests, and making the test-runner itself run as a Kubernetes Pod. This
1414makes it easier to run the tests in environments with access to a Kubernetes
1515cluster with no go toolchain installed locally, making it easier to reproduce
1616our local working environments in CI/CD systems.
@@ -41,7 +41,7 @@ each one of them in charge of some part of the lifecycle of the MongoDB database
4141
4242# Developing locally
4343
44- The operator is built using the latest stable ` operator-sdk ` and ` golang ` . We use a simple
44+ The operator is built using ` golang ` . We use a simple
4545json file that describe some local options that you need to set for the testing environment
4646to be able to run properly. Create a json file with the following content:
4747
@@ -137,13 +137,13 @@ python scripts/dev/e2e.py --help
137137to get a list.
138138
139139## Troubleshooting
140- When you run a test locally, if the ` operator-sdk -test` pod is present, you will have to
140+ When you run a test locally, if the ` e2e -test` pod is present, you will have to
141141first manually delete it; failing to do so will cause the ` test-runner ` pod to fail.
142142
143143# Writing new E2E tests
144144
145145You can start with ` replica_set ` test as an starting point to write a new test.
146- The tests are written using ` operator-sdk ` .
146+ The tests are written using ` envtest ` and they are run using ` go test ` .
147147
148148Adding a new test is as easy as to create a new directory in ` test/e2e ` with the
149149new E2E test, and to run them:
0 commit comments