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 =
|
2018-07-20 22:56:59 +02:00
|
|
|
{ ... }:
|
2018-05-19 11:09:07 +02:00
|
|
|
{ virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit
|
2019-01-10 22:39:43 +01:00
|
|
|
virtualisation.diskSize = 8192;
|
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
|
|
|
'';
|
|
|
|
})
|