1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00
nixpkgs/nixos/tests/nexus.nix
xeji a0feedca8f
nixos/tests/nexus: fix for i686 (#40743)
test failed because qemu-system-i386 can only simulate 2047M RAM
(not 2048)
2018-05-19 11:09:07 +02:00

33 lines
732 B
Nix

# verifies:
# 1. nexus service starts on server
# 2. nexus service can startup on server (creating database and all other initial stuff)
# 3. the web application is reachable via HTTP
import ./make-test.nix ({ pkgs, ...} : {
name = "nexus";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ ironpinguin ma27 ];
};
nodes = {
server =
{ config, pkgs, ... }:
{ virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit
virtualisation.diskSize = 2048;
services.nexus.enable = true;
};
};
testScript = ''
startAll;
$server->waitForUnit("nexus");
$server->waitForOpenPort(8081);
$server->succeed("curl -f 127.0.0.1:8081");
'';
})