File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff 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 `
You can’t perform that action at this time.
0 commit comments