mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
9886c80daa
GoCD is an open source continuous delivery server specializing in advanced workflow modeling and visualization. Update maintainers list to include swarren83. Update module list to include gocd agent and server module. Update packages list to include gocd agent and server package. Update version, revision and checksum for GoCD release 16.5.0.
35 lines
856 B
Nix
35 lines
856 B
Nix
# verifies:
|
|
# 1. GoCD agent starts
|
|
# 2. GoCD agent responds
|
|
# 3. GoCD agent is available on GoCD server using GoCD API
|
|
# 3.1. https://api.go.cd/current/#get-all-agents
|
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "gocd-agent";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ swarren83 ];
|
|
};
|
|
|
|
nodes = {
|
|
gocd_agent =
|
|
{ config, pkgs, ... }:
|
|
{
|
|
virtualisation.memorySize = 2048;
|
|
services.gocd-agent = {
|
|
enable = true;
|
|
};
|
|
services.gocd-server = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
$gocd_agent->waitForUnit("gocd-server");
|
|
$gocd_agent->waitForOpenPort("8153");
|
|
$gocd_agent->waitForUnit("gocd-agent");
|
|
$gocd_agent->waitUntilSucceeds("curl -s -f localhost:8153/go/api/agents -H 'Accept: application/vnd.go.cd.v2+json'");
|
|
'';
|
|
})
|