Skip to content

Commit

Permalink
Check the DNS records.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelton committed Dec 12, 2024
1 parent ae7b5a7 commit bf34848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/run-master-and-replica.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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$$
Expand Down
2 changes: 2 additions & 0 deletions tests/run-master-in-k3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bf34848

Please sign in to comment.