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