2017-09-01 16:24:20 +00:00
|
|
|
# verifies:
|
|
|
|
# 1. nexus service starts on server
|
2018-05-15 12:10:29 +00: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 16:24:20 +00:00
|
|
|
|
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
|
|
name = "nexus";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
2018-05-15 12:10:29 +00:00
|
|
|
maintainers = [ ironpinguin ma27 ];
|
2017-09-01 16:24:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
|
|
|
|
server =
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{ virtualisation.memorySize = 2048;
|
2018-05-15 12:10:29 +00:00
|
|
|
virtualisation.diskSize = 2048;
|
2017-09-01 16:24:20 +00:00
|
|
|
|
|
|
|
services.nexus.enable = true;
|
|
|
|
};
|
2018-05-15 12:10:29 +00:00
|
|
|
|
2017-09-01 16:24:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
|
|
|
|
|
|
|
$server->waitForUnit("nexus");
|
|
|
|
$server->waitForOpenPort(8081);
|
2018-05-15 12:10:29 +00:00
|
|
|
|
|
|
|
$server->succeed("curl -f 127.0.0.1:8081");
|
2017-09-01 16:24:20 +00:00
|
|
|
'';
|
|
|
|
})
|