mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-24 18:48:29 +03:00
Use new-style tests
This commit is contained in:
parent
ea17cc71b4
commit
effb43cb63
1 changed files with 4 additions and 6 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue