2016-07-22 22:29:18 +00:00
|
|
|
# verifies:
|
|
|
|
# 1. GoCD server starts
|
|
|
|
# 2. GoCD server responds
|
|
|
|
|
2016-08-10 20:21:35 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ...} :
|
2016-07-22 22:29:18 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "gocd-server";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ swarren83 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
gocd_server =
|
2018-07-20 20:56:59 +00:00
|
|
|
{ ... }:
|
2016-08-10 20:21:35 +00:00
|
|
|
{
|
|
|
|
virtualisation.memorySize = 2046;
|
2016-07-22 22:29:18 +00:00
|
|
|
services.gocd-server.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
$gocd_server->start;
|
|
|
|
$gocd_server->waitForUnit("gocd-server");
|
|
|
|
$gocd_server->waitForOpenPort("8153");
|
|
|
|
$gocd_server->waitUntilSucceeds("curl -s -f localhost:8153/go");
|
|
|
|
'';
|
|
|
|
})
|