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