1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 04:09:47 +01:00
home-manager/tests/modules/programs/sftpman/assert-on-no-sshkey.nix

22 lines
412 B
Nix
Raw Normal View History

2023-11-06 20:05:51 +01:00
{
config = {
programs.sftpman = {
enable = true;
mounts = {
mount1 = {
host = "host1.example.com";
mountPoint = "/path/to/somewhere";
user = "root";
};
};
};
test.stubs.sftpman = { };
test.asserts.assertions.expected = [''
sftpman mounts using authentication type "publickey" but missing 'sshKey': mount1
''];
};
}