nixos/vikunja: test 'port' option
This commit is contained in:
parent
f3f709af74
commit
b981ba288c
1 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|||
};
|
||||
frontendScheme = "http";
|
||||
frontendHostname = "localhost";
|
||||
port = 9090;
|
||||
};
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
@ -52,8 +53,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|||
vikunjaSqlite.succeed("curl --fail http://localhost")
|
||||
|
||||
vikunjaPostgresql.wait_for_unit("vikunja-api.service")
|
||||
vikunjaPostgresql.wait_for_open_port(3456)
|
||||
vikunjaPostgresql.succeed("curl --fail http://localhost:3456/api/v1/info")
|
||||
vikunjaPostgresql.wait_for_open_port(9090)
|
||||
vikunjaPostgresql.succeed("curl --fail http://localhost:9090/api/v1/info")
|
||||
|
||||
vikunjaPostgresql.wait_for_unit("nginx.service")
|
||||
vikunjaPostgresql.wait_for_open_port(80)
|
||||
|
|
Loading…
Reference in a new issue