Unverified Commit 0c2bacaf authored by Ninjatrappeur's avatar Ninjatrappeur Committed by GitHub
Browse files

Merge pull request #219979 from flokli/nixos-tests-hostname-cleanups

nixosTests.hostname: nixpkgs-fmt, stop using deprecated nodes.machine.config
parents acdc303e 5566961d
Loading
Loading
Loading
Loading
+43 −43
Original line number Diff line number Diff line
{ system ? builtins.currentSystem,
  config ? {},
  pkgs ? import ../.. { inherit system config; }
{ system ? builtins.currentSystem
, config ? { }
, pkgs ? import ../.. { inherit system config; }
}:

with import ../lib/testing-python.nix { inherit system pkgs; };
@@ -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()