nixos/tests/eintopf: switch to runTest

This commit is contained in:
Jonas Heinrich 2025-05-01 12:49:18 +02:00
parent 8b485892b7
commit b62f2530fc
2 changed files with 23 additions and 25 deletions

View File

@ -421,7 +421,7 @@ in
ecryptfs = handleTest ./ecryptfs.nix { };
fscrypt = handleTest ./fscrypt.nix { };
fastnetmon-advanced = runTest ./fastnetmon-advanced.nix;
eintopf = handleTest ./eintopf.nix { };
eintopf = runTest ./eintopf.nix;
ejabberd = handleTest ./xmpp/ejabberd.nix { };
elk = handleTestOn [ "x86_64-linux" ] ./elk.nix { };
emacs-daemon = runTest ./emacs-daemon.nix;

View File

@ -1,26 +1,24 @@
import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "eintopf";
meta = with pkgs.lib.maintainers; {
maintainers = [ onny ];
};
{
lib,
pkgs,
...
}:
nodes = {
eintopf =
{ config, pkgs, ... }:
{
services.eintopf = {
enable = true;
};
};
};
{
name = "eintopf";
meta.maintainers = with lib.maintainers; [ onny ];
testScript = ''
eintopf.start
eintopf.wait_for_unit("eintopf.service")
eintopf.wait_for_open_port(3333)
eintopf.succeed("curl -sSfL http://eintopf:3333 | grep 'Es sind keine Veranstaltungen eingetragen'")
'';
}
)
nodes = {
eintopf = {
services.eintopf.enable = true;
};
};
testScript = ''
eintopf.start
eintopf.wait_for_unit("eintopf.service")
eintopf.wait_for_open_port(3333)
eintopf.succeed("curl -sSfL http://eintopf:3333 | grep 'No events available'")
'';
}