diff --git a/tests/run-master-and-replica.sh b/tests/run-master-and-replica.sh index 5dd70620..2d88d91a 100755 --- a/tests/run-master-and-replica.sh +++ b/tests/run-master-and-replica.sh @@ -250,6 +250,9 @@ for i in $( seq 1 20 ) ; do done ( set -x +$docker exec freeipa-master dig +short ipa.example.test | tee /dev/stderr | grep -q '\.*\..*\.' +$docker exec freeipa-master dig +short -t srv _ldap._tcp.example.test | tee /dev/stderr | grep -Fq '0 100 389 ipa.example.test.' + $docker exec freeipa-master bash -c 'yes Secret123 | kinit admin' $docker exec freeipa-master ipa user-add --first Bob --last Nowak bob$$ $docker exec freeipa-master id bob$$ diff --git a/tests/run-master-in-k3s.sh b/tests/run-master-in-k3s.sh index 2196989f..b0efb961 100755 --- a/tests/run-master-in-k3s.sh +++ b/tests/run-master-in-k3s.sh @@ -57,6 +57,8 @@ curl -Lk https://$IPA_SERVER_HOSTNAME/ | grep -E 'IPA: Identity Policy Audit|Ide curl -H "Referer: https://$IPA_SERVER_HOSTNAME/ipa/ui/" -H 'Accept-Language: fr' -d '{"method":"i18n_messages","params":[[],{}]}' -k https://$IPA_SERVER_HOSTNAME/ipa/i18n_messages | grep -q utilisateur echo Secret123 | kubectl exec -i pod/freeipa-server -- kinit admin dig +short $IPA_SERVER_HOSTNAME | tee /dev/stderr | grep -Fq $IPA_SERVER_IP +dig +short -t srv _ldap._tcp.${IPA_SERVER_HOSTNAME#*.} | tee /dev/stderr | grep -Fq "0 100 389 $IPA_SERVER_HOSTNAME." + kill $MASTER_LOGS_PID 2> /dev/null || : trap - EXIT