2017-09-01 18:24:20 +02:00
|
|
|
# verifies:
|
|
|
|
# 1. nexus service starts on server
|
2018-05-15 14:10:29 +02:00
|
|
|
# 2. nexus service can startup on server (creating database and all other initial stuff)
|
|
|
|
# 3. the web application is reachable via HTTP
|
2017-09-01 18:24:20 +02:00
|
|
|
|
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
|
|
name = "nexus";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
2018-05-15 14:10:29 +02:00
|
|
|
maintainers = [ ironpinguin ma27 ];
|
2017-09-01 18:24:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
|
|
|
|
server =
|
|
|
|
{ config, pkgs, ... }:
|
2018-05-19 11:09:07 +02:00
|
|
|
{ virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit
|
2018-05-15 14:10:29 +02:00
|
|
|
virtualisation.diskSize = 2048;
|
2017-09-01 18:24:20 +02:00
|
|
|
|
|
|
|
services.nexus.enable = true;
|
|
|
|
};
|
2018-05-15 14:10:29 +02:00
|
|
|
|
2017-09-01 18:24:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
|
|
|
|
|
|
|
$server->waitForUnit("nexus");
|
|
|
|
$server->waitForOpenPort(8081);
|
2018-05-15 14:10:29 +02:00
|
|
|
|
|
|
|
$server->succeed("curl -f 127.0.0.1:8081");
|
2017-09-01 18:24:20 +02:00
|
|
|
'';
|
|
|
|
})
|