mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
d2462e2957
(cherry picked from commit 5bafb9cf0f
)
Signed-off-by: Domen Kožar <domen@dev.si>
22 lines
574 B
Nix
22 lines
574 B
Nix
# 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");
|
|
$gitlab->waitForUnit("gitlab-sidekiq.service");
|
|
$gitlab->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
|
|
'';
|
|
}
|