Skip to content

Commit 8cc297e

Browse files
radtristeMarianMacik
authored andcommitted
[KOGITO-997] Setup service discovery feature scenario (apache#179)
1 parent 19fba8f commit 8cc297e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

hack/run-tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ function usage(){
6161
printf "\n--examples_uri ${URI}\n\tSet the URI for the kogito-examples repository. Default is https://github.com/kiegroup/kogito-examples."
6262
printf "\n--examples_ref ${REF}\n\tSet the branch for the kogito-examples repository. Default is none."
6363

64+
# Dev options
6465
printf "\n--show_scenarios\n\tDisplay scenarios which will be executed."
6566
printf "\n--disabled_crds_update\n\tDisabled the update of CRDs."
6667
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 ...)."
6769
printf "\n"
6870
}
6971

@@ -255,6 +257,10 @@ case $1 in
255257
addParam "--tests.dry-run"
256258
shift
257259
;;
260+
--keep_namespace)
261+
shift
262+
addParam "--tests.keep-namespace"
263+
;;
258264
-h|--help)
259265
usage
260266
exit 0

hack/run-tests.sh.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,10 @@
364364
run ${BATS_TEST_DIRNAME}/run-tests.sh --show_scenarios --dry_run
365365
[ "$status" -eq 0 ]
366366
[[ "${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" ]]
367373
}

0 commit comments

Comments
 (0)