1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
4 meta.maintainers = with lib.maintainers; [ leona ];
7 vikunjaSqlite = { ... }: {
13 frontendScheme = "http";
14 frontendHostname = "localhost";
18 virtualHosts."http://localhost" = {
19 locations."/".proxyPass = "http://localhost:3456";
23 vikunjaPostgresql = { pkgs, ... }: {
30 host = "/run/postgresql";
32 frontendScheme = "http";
33 frontendHostname = "localhost";
36 services.postgresql = {
38 ensureDatabases = [ "vikunja" ];
41 ensureDBOwnership = true;
47 virtualHosts."http://localhost" = {
48 locations."/".proxyPass = "http://localhost:9090";
56 vikunjaSqlite.wait_for_unit("vikunja.service")
57 vikunjaSqlite.wait_for_open_port(3456)
58 vikunjaSqlite.succeed("curl --fail http://localhost:3456/api/v1/info")
60 vikunjaSqlite.wait_for_unit("nginx.service")
61 vikunjaSqlite.wait_for_open_port(80)
62 vikunjaSqlite.succeed("curl --fail http://localhost/api/v1/info")
63 vikunjaSqlite.succeed("curl --fail http://localhost")
65 vikunjaPostgresql.wait_for_unit("vikunja.service")
66 vikunjaPostgresql.wait_for_open_port(9090)
67 vikunjaPostgresql.succeed("curl --fail http://localhost:9090/api/v1/info")
69 vikunjaPostgresql.wait_for_unit("nginx.service")
70 vikunjaPostgresql.wait_for_open_port(80)
71 vikunjaPostgresql.succeed("curl --fail http://localhost/api/v1/info")
72 vikunjaPostgresql.succeed("curl --fail http://localhost")