Skip to content

Commit df2c788

Browse files
committed
Adds documentaion for kuttl tests
1 parent 0b8d9ba commit df2c788

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,19 @@ or in Visual Studio Code by defining the following in your settings.json:
241241
"KUBEBUILDER_ASSETS":"<location of kubebuilder-envtest installation>"
242242
},
243243
```
244+
245+
## Run kuttl test
246+
The easiest way is to run kuttl test in fresh system with crc deployed with
247+
248+
- **create enough pv's**
249+
`PV_NUM=30 make crc_storage`
250+
- make your changes in neutron-operator
251+
- add required kuttl tests
252+
- start webhook `make run-with-webhook`
253+
254+
- navigate to install_yamls
255+
- run kuttl tests
256+
`make neutron_kuttl_run OPERATOR_BASE_DIR=/home/stack/repos NAMESPACE=neutron-kuttl-tests`
257+
258+
- To run a single test
259+
`make neutron_kuttl_run OPERATOR_BASE_DIR=/home/stack/repos NAMESPACE=neutron-kuttl-tests KUTTL_ARGS="--test notifications"`

0 commit comments

Comments
 (0)