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
|
|
|
|
2019-11-24 22:57:24 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
2017-09-01 16:24:20 +00:00
|
|
|
name = "nexus";
|
2021-01-10 19:08:30 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2021-08-27 20:09:49 +00:00
|
|
|
maintainers = [ ironpinguin ];
|
2017-09-01 16:24:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
|
|
|
|
server =
|
2018-07-20 20:56:59 +00:00
|
|
|
{ ... }:
|
2018-05-19 09:09:07 +00:00
|
|
|
{ virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit
|
2019-01-10 21:39:43 +00:00
|
|
|
virtualisation.diskSize = 8192;
|
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 = ''
|
2019-11-24 22:57:24 +00:00
|
|
|
start_all()
|
2017-09-01 16:24:20 +00:00
|
|
|
|
2019-11-24 22:57:24 +00:00
|
|
|
server.wait_for_unit("nexus")
|
|
|
|
server.wait_for_open_port(8081)
|
2018-05-15 12:10:29 +00:00
|
|
|
|
2019-11-24 22:57:24 +00:00
|
|
|
server.succeed("curl -f 127.0.0.1:8081")
|
2017-09-01 16:24:20 +00:00
|
|
|
'';
|
|
|
|
})
|