at 18.09-beta 718 B view raw
1# verifies: 2# 1. nexus service starts on server 3# 2. nexus service can startup on server (creating database and all other initial stuff) 4# 3. the web application is reachable via HTTP 5 6import ./make-test.nix ({ pkgs, ...} : { 7 name = "nexus"; 8 meta = with pkgs.stdenv.lib.maintainers; { 9 maintainers = [ ironpinguin ma27 ]; 10 }; 11 12 nodes = { 13 14 server = 15 { ... }: 16 { virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit 17 virtualisation.diskSize = 2048; 18 19 services.nexus.enable = true; 20 }; 21 22 }; 23 24 testScript = '' 25 startAll; 26 27 $server->waitForUnit("nexus"); 28 $server->waitForOpenPort(8081); 29 30 $server->succeed("curl -f 127.0.0.1:8081"); 31 ''; 32})