1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/nixos/tests/gitlab.nix

22 lines
574 B
Nix
Raw Normal View History

# 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";
systemd.services.gitlab.serviceConfig.TimeoutStartSec = "10min";
};
};
testScript = ''
$gitlab->start();
$gitlab->waitForUnit("gitlab.service");
2014-12-14 01:30:13 +00:00
$gitlab->waitForUnit("gitlab-sidekiq.service");
$gitlab->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
'';
}