Skip to content

Commit a18c0a4

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

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,3 +241,40 @@ 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 enough pv's
247+
`PV_NUM=30 make crc_storage`
248+
249+
- made change neutron-openrator code changes
250+
- add kuttl tests
251+
- make install
252+
- start webhook
253+
`make run-with-webhook`
254+
255+
- navigate to install_yamls
256+
- run kuttl tests
257+
`make neutron_kuttl_run OPERATOR_BASE_DIR=/home/stack/repos NAMESPACE=neutron-kuttl-tests`
258+
259+
260+
- To run a single test
261+
`make neutron_kuttl_run OPERATOR_BASE_DIR=/home/stack/repos NAMESPACE=neutron-kuttl-tests KUTTL_ARGS="--test notifications"`
262+
263+
264+
**Note for CI:**
265+
try to use less resources:
266+
267+
```
268+
persistence:
269+
storage: 1Gi
270+
resources:
271+
limits:
272+
cpu: "1"
273+
memory: 1Gi
274+
requests:
275+
cpu: "0.5"
276+
memory: 500Mi
277+
```
278+
279+
- Run all tests from temp pull of main
280+
`make neutron_kuttl`

0 commit comments

Comments
 (0)