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
|
|
|
|
2019-11-24 23:57:24 +01:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2017-09-01 18:24:20 +02:00
|
|
|
name = "nexus";
|
2021-01-10 20:08:30 +01:00
|
|
|
meta = with pkgs.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 = ''
|
2019-11-24 23:57:24 +01:00
|
|
|
start_all()
|
2017-09-01 18:24:20 +02:00
|
|
|
|
2019-11-24 23:57:24 +01:00
|
|
|
server.wait_for_unit("nexus")
|
|
|
|
server.wait_for_open_port(8081)
|
2018-05-15 14:10:29 +02:00
|
|
|
|
2019-11-24 23:57:24 +01:00
|
|
|
server.succeed("curl -f 127.0.0.1:8081")
|
2017-09-01 18:24:20 +02:00
|
|
|
'';
|
|
|
|
})
|