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-python.nix ({ pkgs, ...} : {
7 name = "nexus";
8 meta = with pkgs.lib.maintainers; {
9 maintainers = [ ironpinguin ];
10 };
11
12 nodes = {
13
14 server =
15 { ... }:
16 { virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit
17 virtualisation.diskSize = 8192;
18
19 services.nexus.enable = true;
20 };
21
22 };
23
24 testScript = ''
25 start_all()
26
27 server.wait_for_unit("nexus")
28 server.wait_for_open_port(8081)
29
30 server.succeed("curl -f 127.0.0.1:8081")
31 '';
32})