2016-07-23 00:29:18 +02:00
|
|
|
# verifies:
|
|
|
|
# 1. GoCD server starts
|
|
|
|
# 2. GoCD server responds
|
|
|
|
|
2016-08-10 22:21:35 +02:00
|
|
|
import ./make-test.nix ({ pkgs, ...} :
|
2016-07-23 00:29:18 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "gocd-server";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ swarren83 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
gocd_server =
|
2018-07-20 22:56:59 +02:00
|
|
|
{ ... }:
|
2016-08-10 22:21:35 +02:00
|
|
|
{
|
|
|
|
virtualisation.memorySize = 2046;
|
2016-07-23 00:29:18 +02: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");
|
|
|
|
'';
|
|
|
|
})
|