nixosTests.hostname: stop using deprecated nodes.machine.config

Module argument `nodes.machine.config` is deprecated.
This commit is contained in:
Florian Klink 2023-03-07 13:28:33 +01:00
parent 27eab436bd
commit 5566961d2e

View File

@ -37,7 +37,7 @@ let
machine.wait_for_unit("network-online.target")
# Test if NixOS computes the correct FQDN (either a FQDN or an error/null):
assert "${getStr nodes.machine.config.networking.fqdn}" == "${getStr fqdnOrNull}"
assert "${getStr nodes.machine.networking.fqdn}" == "${getStr fqdnOrNull}"
# The FQDN, domain name, and hostname detection should work as expected:
assert "${fqdn}" == machine.succeed("hostname --fqdn").strip()