nixos/tests/eintopf: switch to runTest
This commit is contained in:
parent
8b485892b7
commit
b62f2530fc
@ -421,7 +421,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 { };
|
eintopf = runTest ./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 = runTest ./emacs-daemon.nix;
|
emacs-daemon = runTest ./emacs-daemon.nix;
|
||||||
|
|||||||
@ -1,18 +1,16 @@
|
|||||||
import ./make-test-python.nix (
|
{
|
||||||
{ pkgs, ... }:
|
lib,
|
||||||
{
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
name = "eintopf";
|
name = "eintopf";
|
||||||
meta = with pkgs.lib.maintainers; {
|
meta.maintainers = with lib.maintainers; [ onny ];
|
||||||
maintainers = [ onny ];
|
|
||||||
};
|
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
eintopf =
|
eintopf = {
|
||||||
{ config, pkgs, ... }:
|
services.eintopf.enable = true;
|
||||||
{
|
|
||||||
services.eintopf = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -20,7 +18,7 @@ import ./make-test-python.nix (
|
|||||||
eintopf.start
|
eintopf.start
|
||||||
eintopf.wait_for_unit("eintopf.service")
|
eintopf.wait_for_unit("eintopf.service")
|
||||||
eintopf.wait_for_open_port(3333)
|
eintopf.wait_for_open_port(3333)
|
||||||
eintopf.succeed("curl -sSfL http://eintopf:3333 | grep 'Es sind keine Veranstaltungen eingetragen'")
|
eintopf.succeed("curl -sSfL http://eintopf:3333 | grep 'No events available'")
|
||||||
'';
|
'';
|
||||||
}
|
|
||||||
)
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user