1 # Test UniFi controller
3 { system ? builtins.currentSystem
4 , config ? { allowUnfree = true; }
5 , pkgs ? import ../.. { inherit system config; }
8 with import ../lib/testing-python.nix { inherit system pkgs; };
12 makeAppTest = unifi: makeTest {
13 name = "unifi-controller-${unifi.version}";
14 meta = with pkgs.lib.maintainers; {
15 maintainers = [ patryk27 zhaofengli ];
19 nixpkgs.config = config;
29 server.wait_for_unit("unifi.service")
30 server.wait_until_succeeds("curl -Lk https://localhost:8443 >&2", timeout=300)
34 unifi8 = makeAppTest unifi8;