summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0x4A6F <0x4A6F@users.noreply.github.com>2021-12-19 09:30:52 +0100
committerGitHub <noreply@github.com>2021-12-19 09:30:52 +0100
commite000da59d4553234f1868a47cafad1ab0f35225e (patch)
tree28b059b8a747a3beb9f0eba560fa4a976ed637fa
parentunifi: Add NixOS tests (diff)
downloadnixpkgs-origin/backport-151145-to-release-21.05.tar.gz
unifi: Adjust NixOS tests to 21.05 origin/backport-151145-to-release-21.05
- increase virtualisation.memorySize - use renamed option openPorts - remove unsupported timeout in wait_until_succeeds Co-authored-by: Zhaofeng Li <hello@zhaofeng.li>
-rw-r--r--nixos/tests/unifi.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/tests/unifi.nix b/nixos/tests/unifi.nix
index 34284811abfb..791848d22202 100644
--- a/nixos/tests/unifi.nix
+++ b/nixos/tests/unifi.nix
@@ -16,16 +16,17 @@ let
};
nodes.server = {
+ virtualisation.memorySize = 1024;
services.unifi = {
enable = true;
unifiPackage = unifi;
- openFirewall = false;
+ openPorts = false;
};
};
testScript = ''
server.wait_for_unit("unifi.service")
- server.wait_until_succeeds("curl -Lk https://localhost:8443 >&2", timeout=300)
+ server.wait_until_succeeds("curl -Lk https://localhost:8443 >&2")
'';
};
in with pkgs; {