1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/nixos/tests/nexus.nix
Dominik Xaver Hörl 25bef2d8f9 treewide: simplify pkgs.stdenv.lib -> pkgs.lib
The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
2021-01-10 20:12:06 +01:00

33 lines
716 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-python.nix ({ pkgs, ...} : {
name = "nexus";
meta = with pkgs.lib.maintainers; {
maintainers = [ ironpinguin ma27 ];
};
nodes = {
server =
{ ... }:
{ virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit
virtualisation.diskSize = 8192;
services.nexus.enable = true;
};
};
testScript = ''
start_all()
server.wait_for_unit("nexus")
server.wait_for_open_port(8081)
server.succeed("curl -f 127.0.0.1:8081")
'';
})