nixosTests.fail2ban: migrate to runTest
This commit is contained in:
parent
cd200e7fae
commit
0dbddf816a
@ -386,7 +386,7 @@ in {
|
||||
etebase-server = handleTest ./etebase-server.nix {};
|
||||
etesync-dav = handleTest ./etesync-dav.nix {};
|
||||
evcc = runTest ./evcc.nix;
|
||||
fail2ban = handleTest ./fail2ban.nix { };
|
||||
fail2ban = runTest ./fail2ban.nix;
|
||||
fakeroute = handleTest ./fakeroute.nix {};
|
||||
fancontrol = handleTest ./fancontrol.nix {};
|
||||
fanout = handleTest ./fanout.nix {};
|
||||
|
@ -1,21 +1,19 @@
|
||||
import ./make-test-python.nix (
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
name = "fail2ban";
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
name = "fail2ban";
|
||||
|
||||
nodes.machine = _: {
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
bantime-increment.enable = true;
|
||||
};
|
||||
|
||||
services.openssh.enable = true;
|
||||
nodes.machine = _: {
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
bantime-increment.enable = true;
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
services.openssh.enable = true;
|
||||
};
|
||||
|
||||
machine.wait_for_unit("fail2ban")
|
||||
'';
|
||||
}
|
||||
)
|
||||
testScript = ''
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
|
||||
machine.wait_for_unit("fail2ban")
|
||||
'';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user