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
This commit is contained in:
parent
8b0589bd5c
commit
f9eec1ea82
|
@ -486,6 +486,12 @@ runWith() {
|
||||||
run_local_with $@
|
run_local_with $@
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
initOnly() {
|
||||||
|
if [[ "$COMMAND" == "initOnly" ]]
|
||||||
|
then
|
||||||
|
init_only $@
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
run_local_with() {
|
run_local_with() {
|
||||||
export PROFILES="local ${PROFILES}"
|
export PROFILES="local ${PROFILES}"
|
||||||
|
@ -536,6 +542,15 @@ determine_required_components_excluding_rabbitmq() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
initOnly() {
|
||||||
|
for (( i=1; i<=$#; i++)) {
|
||||||
|
if [[ $i != "rabbitmq" ]]; then
|
||||||
|
eval val='$'$i
|
||||||
|
init="init_$val"
|
||||||
|
$init
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
}
|
||||||
run_on_docker_with() {
|
run_on_docker_with() {
|
||||||
determine_required_components_including_rabbitmq $@
|
determine_required_components_including_rabbitmq $@
|
||||||
export PROFILES=`profiles_with_local_or_docker`
|
export PROFILES=`profiles_with_local_or_docker`
|
||||||
|
|
|
@ -7,4 +7,5 @@ TEST_CONFIG_PATH=/multi-oauth
|
||||||
PROFILES="devkeycloak prodkeycloak enable-basic-auth with-resource-label with-resource-scopes tls"
|
PROFILES="devkeycloak prodkeycloak enable-basic-auth with-resource-label with-resource-scopes tls"
|
||||||
|
|
||||||
source $SCRIPT/../../bin/suite_template $@
|
source $SCRIPT/../../bin/suite_template $@
|
||||||
|
initOnly devkeycloak prodkeycloak
|
||||||
run
|
run
|
||||||
|
|
Loading…
Reference in New Issue