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