parent
e0026e16a5
commit
6702b22b98
12 changed files with 35 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ with lib;
|
|||
config = {
|
||||
programs.ssh = { enable = true; };
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ with lib;
|
|||
home.file.result.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContent \
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
test.asserts.assertions.expected = [ "Forwarded paths cannot have ports." ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@
|
|||
includes = [ "config.d/*" "other/dir" ];
|
||||
};
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContains home-files/.ssh/config "Include config.d/* other/dir"
|
||||
|
|
|
|||
|
|
@ -51,6 +51,8 @@ with lib;
|
|||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContent \
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ with lib;
|
|||
home.file.assertions.text = builtins.toJSON
|
||||
(map (a: a.message) (filter (a: !a.assertion) config.assertions));
|
||||
|
||||
test.stubs.openssh = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.ssh/config
|
||||
assertFileContent \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue