Skip to content

Commit a061f01

Browse files
MarcialRosalesmergify[bot]
authored andcommitted
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 (cherry picked from commit f9eec1e) (cherry picked from commit 2fe3518)
1 parent 862b239 commit a061f01

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
@@ -479,6 +479,12 @@ runWith() {
479479
run_local_with $@
480480
fi
481481
}
482+
initOnly() {
483+
if [[ "$COMMAND" == "initOnly" ]]
484+
then
485+
init_only $@
486+
fi
487+
}
482488

483489
run_local_with() {
484490
export PROFILES="local ${PROFILES}"
@@ -529,6 +535,15 @@ determine_required_components_excluding_rabbitmq() {
529535
fi
530536
}
531537
}
538+
initOnly() {
539+
for (( i=1; i<=$#; i++)) {
540+
if [[ $i != "rabbitmq" ]]; then
541+
eval val='$'$i
542+
init="init_$val"
543+
$init
544+
fi
545+
}
546+
}
532547
run_on_docker_with() {
533548
determine_required_components_including_rabbitmq $@
534549
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)