3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/pretalx: init

This commit is contained in:
Martin Weinelt 2023-05-13 17:36:03 +02:00 committed by Sandro Jäckel
parent 8f03632997
commit 5283fe407c
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 32 additions and 0 deletions

View file

@ -712,6 +712,7 @@ in {
power-profiles-daemon = handleTest ./power-profiles-daemon.nix {};
pppd = handleTest ./pppd.nix {};
predictable-interface-names = handleTest ./predictable-interface-names.nix {};
pretalx = runTest ./web-apps/pretalx.nix;
printing-socket = handleTest ./printing.nix { socket = true; };
printing-service = handleTest ./printing.nix { socket = false; };
privoxy = handleTest ./privoxy.nix {};

View file

@ -0,0 +1,31 @@
{ lib, ... }:
{
name = "pretalx";
meta.maintainers = lib.teams.c3d2.members;
nodes = {
pretalx = {
networking.extraHosts = ''
127.0.0.1 talks.local
'';
services.pretalx = {
enable = true;
nginx.domain = "talks.local";
settings = {
site.url = "http://talks.local";
};
};
};
};
testScript = ''
start_all()
pretalx.wait_for_unit("pretalx-web.service")
pretalx.wait_for_unit("pretalx-worker.service")
pretalx.wait_until_succeeds("curl -q --fail http://talks.local/orga/")
'';
}