Skip to content

Commit

Permalink
Merge pull request #1367 from rvykydal/update-network-autoconnection-…
Browse files Browse the repository at this point in the history
…with-policy-check

Update autoconnection test with platform configuration check
  • Loading branch information
rvykydal authored Feb 13, 2025
2 parents 88daf40 + f9c37dc commit 2abd391
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion network-autoconnections-httpks.ks.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Test assumptions about connections and config files created in initramfs (by NM)
# Also test consolidating of the connections by anaconda.
# Variant for ip=dhcp option (which is currently equivalent to no boot options)
# And test autoconnection configuration per platform.
%ksappend repos/default.ks

# Use nameserver as a difference from default autoconnection for checking
Expand Down Expand Up @@ -129,6 +129,20 @@ else
check_connection_device @KSTEST_NETDEV3@ @KSTEST_NETDEV3@
fi

# Test per-platform autoconnection configuration
# It is configured by anaconda-nm-disable-autocons-rhel.service
if [ "${platform:0:4}" == "rhel" ]; then
if [ $nm_has_autoconnections_off -ne 0 ]; then
echo '*** autoconnections are on on platform ${platform}' >> /root/RESULT
fi
else
if [ $nm_has_autoconnections_off -eq 0 ]; then
echo '*** autoconnections are off on platform ${platform}' >> /root/RESULT
fi
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 2abd391

Please sign in to comment.