diff options
author | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-11-30 00:56:22 +0100 |
---|---|---|
committer | Jaka Hudoklin <jakahudoklin@gmail.com> | 2014-12-12 18:01:31 +0100 |
commit | 13e58784bfd3261589ac0fb07782dbaa2a68817f (patch) | |
tree | b9a2a1d1b6a39d787f6a2413c1dcb5e7a95a7460 /nixos/tests/gitlab.nix | |
parent | 59995e168cf3f682ca8086a58015edc9781a847b (diff) | |
download | nixpkgs-13e58784bfd3261589ac0fb07782dbaa2a68817f.tar nixpkgs-13e58784bfd3261589ac0fb07782dbaa2a68817f.tar.gz nixpkgs-13e58784bfd3261589ac0fb07782dbaa2a68817f.tar.bz2 nixpkgs-13e58784bfd3261589ac0fb07782dbaa2a68817f.tar.lz nixpkgs-13e58784bfd3261589ac0fb07782dbaa2a68817f.tar.xz nixpkgs-13e58784bfd3261589ac0fb07782dbaa2a68817f.tar.zst nixpkgs-13e58784bfd3261589ac0fb07782dbaa2a68817f.zip |
nixos/gitlab: fixes
- fix timezone data not found - fix module, add simple test - allow to set port
Diffstat (limited to 'nixos/tests/gitlab.nix')
-rw-r--r-- | nixos/tests/gitlab.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/gitlab.nix b/nixos/tests/gitlab.nix new file mode 100644 index 00000000000..d213624e332 --- /dev/null +++ b/nixos/tests/gitlab.nix @@ -0,0 +1,19 @@ +# This test runs gitlab and checks if it works + +import ./make-test.nix { + name = "gitlab"; + + nodes = { + gitlab = { config, pkgs, ... }: { + virtualisation.memorySize = 768; + services.gitlab.enable = true; + services.gitlab.databasePassword = "gitlab"; + }; + }; + + testScript = '' + $gitlab->start(); + $gitlab->waitForUnit("gitlab.service"); + $gitlab->waitUntilSucceeds("curl http://localhost:8080"); + ''; +} |