nixos/tests/eintopf: init

This commit is contained in:
Jonas Heinrich 2024-07-03 11:24:22 +02:00
parent 28512d1ba4
commit 325ae12432
2 changed files with 22 additions and 0 deletions

View File

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

21
nixos/tests/eintopf.nix Normal file
View File

@ -0,0 +1,21 @@
import ./make-test-python.nix ({ pkgs, ...} : {
name = "eintopf";
meta = with pkgs.lib.maintainers; {
maintainers = [ onny ];
};
nodes = {
eintopf = { config, pkgs, ... }: {
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 'Es sind keine Veranstaltungen eingetragen'")
'';
})