blob: 1d9985f71ce4df59862c5b17d5a94a5f4d63d16e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import <nixpkgs/nixos/tests/make-test.nix> ( { pkgs, ... }: {
machine = { pkgs, config, lib, ... }: {
virtualisation.memorySize = 1024;
services.gitlab.enable = true;
services.gitlab.databasePassword = "password";
services.gitlab.secrets = { db = "password1"; otp = "password2"; secret = "password3"; };
};
testScript = ''
$machine->start();
$machine->waitForUnit("gitlab.service");
$machine->waitForUnit("gitlab-sidekiq.service");
$machine->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
'';
})
|