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 ];
27 server.wait_for_unit("unifi.service")
28 server.wait_until_succeeds("curl -Lk https://localhost:8443 >&2", timeout=300)
32 unifiLTS = makeAppTest unifiLTS;
33 unifi5 = makeAppTest unifi5;
34 unifi6 = makeAppTest unifi6;
35 unifi7 = makeAppTest unifi7;