about summary refs log tree commit diff
path: root/nixos/tests/nixops
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2023-12-31 20:42:24 +0000
committerSergei Trofimovich <slyich@gmail.com>2023-12-31 20:45:39 +0000
commit8f809e4630bfb2fa80499258b45ad428f0b29c71 (patch)
tree5bfe439dd95176f1b10353434706f4451830c19a /nixos/tests/nixops
parent51d29a4759a278d7d9b7edac7764b2836b4e4a6e (diff)
nixops_unstable: fix `tests` eval with `allowAliases = false;`
Without the change `tests` eval fails as:

    $ nix build --no-link -f. nixops_unstable.tests --arg config '{ allowAliases = false; }'
    error:
       error: attribute 'nixosTest' missing
           22|   testLegacyNetwork = { nixopsPkg, ... }: pkgs.nixosTest ({
             |                                           ^
           23|     name = "nixops-legacy-network";
       Did you mean nixosTests?

The alias is defined as:

    pkgs/top-level/aliases.nix:  nixosTest = testers.nixosTest; # Added 2022-05-05
Diffstat (limited to 'nixos/tests/nixops')
-rw-r--r--nixos/tests/nixops/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/nixops/default.nix b/nixos/tests/nixops/default.nix
index b8f747b2a19f1..6501d13a2ed36 100644
--- a/nixos/tests/nixops/default.nix
+++ b/nixos/tests/nixops/default.nix
@@ -19,7 +19,7 @@ let
     passthru.override = args': testsForPackage (args // args');
   };
 
-  testLegacyNetwork = { nixopsPkg, ... }: pkgs.nixosTest ({
+  testLegacyNetwork = { nixopsPkg, ... }: pkgs.testers.nixosTest ({
     name = "nixops-legacy-network";
     nodes = {
       deployer = { config, lib, nodes, pkgs, ... }: {