diff options
author | Shawn Warren <shawn.warren@rackspace.com> | 2016-07-22 17:29:18 -0500 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2016-07-23 00:29:18 +0200 |
commit | 9886c80daa8c5601f3a6de2a1512d00435da3432 (patch) | |
tree | 10b9e34c1ae379950faac330278cd76a9b755023 /nixos/tests/gocd-server.nix | |
parent | c4c378b6138ac224f2de13ecf172a760104dae3e (diff) | |
download | nixpkgs-9886c80daa8c5601f3a6de2a1512d00435da3432.tar nixpkgs-9886c80daa8c5601f3a6de2a1512d00435da3432.tar.gz nixpkgs-9886c80daa8c5601f3a6de2a1512d00435da3432.tar.bz2 nixpkgs-9886c80daa8c5601f3a6de2a1512d00435da3432.tar.lz nixpkgs-9886c80daa8c5601f3a6de2a1512d00435da3432.tar.xz nixpkgs-9886c80daa8c5601f3a6de2a1512d00435da3432.tar.zst nixpkgs-9886c80daa8c5601f3a6de2a1512d00435da3432.zip |
Add gocd agent and server service packages (#16273)
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.
Diffstat (limited to 'nixos/tests/gocd-server.nix')
-rw-r--r-- | nixos/tests/gocd-server.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixos/tests/gocd-server.nix b/nixos/tests/gocd-server.nix new file mode 100644 index 00000000000..6ec5bfb4dbb --- /dev/null +++ b/nixos/tests/gocd-server.nix @@ -0,0 +1,28 @@ +# verifies: +# 1. GoCD server starts +# 2. GoCD server responds + +import ./make-test.nix ({ pkgs, ...} : + +{ + name = "gocd-server"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ swarren83 ]; + }; + +nodes = { + gocd_server = + { config, pkgs, ... }: + { + virtualisation.memorySize = 2048; + 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"); + ''; +}) |