mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
22 lines
495 B
Nix
22 lines
495 B
Nix
|
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'")
|
||
|
'';
|
||
|
})
|