mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
25 lines
652 B
Nix
25 lines
652 B
Nix
{ pkgs, lib, ... }: {
|
|
|
|
name = "geoserver";
|
|
meta = {
|
|
maintainers = with lib; [ teams.geospatial.members ];
|
|
};
|
|
|
|
nodes = {
|
|
machine = { pkgs, ... }: {
|
|
virtualisation.diskSize = 2 * 1024;
|
|
|
|
environment.systemPackages = [ pkgs.geoserver ];
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
machine.execute("${pkgs.geoserver}/bin/geoserver-startup > /dev/null 2>&1 &")
|
|
machine.wait_until_succeeds("curl --fail --connect-timeout 2 http://localhost:8080/geoserver", timeout=60)
|
|
|
|
machine.succeed("curl --fail --connect-timeout 2 http://localhost:8080/geoserver/ows?service=WMS&version=1.3.0&request=GetCapabilities")
|
|
'';
|
|
}
|