Use new-style tests

This commit is contained in:
Nathan Henrie 2023-02-13 11:50:59 -07:00
parent ea17cc71b4
commit effb43cb63

View file

@ -6,13 +6,12 @@
config = {}; config = {};
}, },
system ? builtins.currentSystem, system ? builtins.currentSystem,
} @ args: }:
import "${nixpkgs}/nixos/tests/make-test-python.nix" ({pkgs, ...}: { pkgs.nixosTest {
name = "agenix-integration"; name = "agenix-integration";
nodes.system1 = { nodes.system1 = {
config, config,
lib, pkgs,
options, options,
... ...
}: { }: {
@ -62,5 +61,4 @@ import "${nixpkgs}/nixos/tests/make-test-python.nix" ({pkgs, ...}: {
system1.wait_for_file("/tmp/1") system1.wait_for_file("/tmp/1")
assert "${user}" in system1.succeed("cat /tmp/1") assert "${user}" in system1.succeed("cat /tmp/1")
''; '';
}) }
args