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