File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,11 @@ function usage(){
61
61
printf " \n--examples_uri ${URI} \n\tSet the URI for the kogito-examples repository. Default is https://github.com/kiegroup/kogito-examples."
62
62
printf " \n--examples_ref ${REF} \n\tSet the branch for the kogito-examples repository. Default is none."
63
63
64
+ # Dev options
64
65
printf " \n--show_scenarios\n\tDisplay scenarios which will be executed."
65
66
printf " \n--disabled_crds_update\n\tDisabled the update of CRDs."
66
67
printf " \n--dry_run ${REF} \n\tExecute a dry run of the tests, disabled crds updates and display the scenarios which would be executed."
68
+ printf " \n--keep_namespace\n\tDo not delete namespace(s) after scenario run (WARNING: can be resources consuming ...)."
67
69
printf " \n"
68
70
}
69
71
@@ -255,6 +257,10 @@ case $1 in
255
257
addParam " --tests.dry-run"
256
258
shift
257
259
;;
260
+ --keep_namespace)
261
+ shift
262
+ addParam " --tests.keep-namespace"
263
+ ;;
258
264
-h|--help)
259
265
usage
260
266
exit 0
Original file line number Diff line number Diff line change 364
364
run ${BATS_TEST_DIRNAME} /run-tests.sh --show_scenarios --dry_run
365
365
[ " $status " -eq 0 ]
366
366
[[ " ${output} " =~ " --tests.show-scenarios" ]]
367
+ }
368
+
369
+ @test " invoke run-tests with keep_namespace" {
370
+ run ${BATS_TEST_DIRNAME} /run-tests.sh --keep_namespace --dry_run
371
+ [ " $status " -eq 0 ]
372
+ [[ " ${output} " =~ " --tests.keep-namespace" ]]
367
373
}
You can’t perform that action at this time.
0 commit comments