Skip to content

Commit f9eec1e

Browse files
Add initOnly function
For scenarios where rabbitmq needs the certificates of an idp but the idp has not been started yet and hence the cert has not been generated With this function, the idp generates its certificates without starting
1 parent 8b0589b commit f9eec1e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

selenium/bin/suite_template

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,12 @@ runWith() {
486486
run_local_with $@
487487
fi
488488
}
489+
initOnly() {
490+
if [[ "$COMMAND" == "initOnly" ]]
491+
then
492+
init_only $@
493+
fi
494+
}
489495

490496
run_local_with() {
491497
export PROFILES="local ${PROFILES}"
@@ -536,6 +542,15 @@ determine_required_components_excluding_rabbitmq() {
536542
fi
537543
}
538544
}
545+
initOnly() {
546+
for (( i=1; i<=$#; i++)) {
547+
if [[ $i != "rabbitmq" ]]; then
548+
eval val='$'$i
549+
init="init_$val"
550+
$init
551+
fi
552+
}
553+
}
539554
run_on_docker_with() {
540555
determine_required_components_including_rabbitmq $@
541556
export PROFILES=`profiles_with_local_or_docker`

selenium/suites/authnz-mgt/multi-oauth-with-basic-auth-when-idps-down.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ TEST_CONFIG_PATH=/multi-oauth
77
PROFILES="devkeycloak prodkeycloak enable-basic-auth with-resource-label with-resource-scopes tls"
88

99
source $SCRIPT/../../bin/suite_template $@
10+
initOnly devkeycloak prodkeycloak
1011
run

0 commit comments

Comments
 (0)