Skip to content

Commit

Permalink
Cleans up test.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Whitman committed Oct 8, 2024
1 parent 1ad5d79 commit 045da97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/hello.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{pkgs, ...}: {
name = "hello";
nodes = {
machine1 = {pkgs, ...}: {
machine = {pkgs, ...}: {
imports = [../machines/hello.nix];
environment.systemPackages = [pkgs.hello];
};
};
testScript = ''
start_all()
machine1.wait_for_unit("sshd.service")
machine1.succeed("hello")
machine1.fail("hello")
machine.wait_for_unit("sshd.service")
machine.succeed("hello")
machine.succeed("ssh-keygen -t rsa -N ''' -f ~/.ssh/id_rsa")
'';
}

0 comments on commit 045da97

Please sign in to comment.