add container test driver

This commit is contained in:
Jörg Thalheim
2023-10-14 15:54:56 +02:00
committed by Mic92
parent f7031bdbdb
commit 5753f32930
9 changed files with 557 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
(import ../lib/container-test.nix) ({ ... }: {
name = "secrets";
nodes.machine = { ... }: {
networking.hostName = "machine";
services.openssh.enable = true;
services.openssh.startWhenNeeded = false;
};
testScript = ''
start_all()
machine.succeed("systemctl status sshd")
machine.wait_for_unit("sshd")
'';
})