Skip to content

Commit

Permalink
Merge pull request #1068 from rvykydal/update-dns-test
Browse files Browse the repository at this point in the history
Update dns test with real resolution check in %post
  • Loading branch information
rvykydal authored Feb 29, 2024
2 parents ded8d1a + 5747955 commit 391af9f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dns.ks.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#version=DEVEL
#test name: dns
# Test domain name resolution.
# Test domain name resolution:
# - origin of /etc/resolv.conf (rhbz#2018913, rhbz#1989472)
# - dns resolution in %post scripts (RHEL-26651)

# Use defaults.
%ksappend repos/default.ks
Expand All @@ -19,6 +21,11 @@ else
check_resolv_conf_is_by_resolved
fi

curl fedoraproject.org
if [[ $? != 0 ]]; then
echo '*** curl fedoraproject.org failed' >> /root/RESULT
fi

# No error was written to /root/RESULT file, everything is OK
if [[ ! -e /root/RESULT ]]; then
echo SUCCESS > /root/RESULT
Expand Down

0 comments on commit 391af9f

Please sign in to comment.