blob: a3d641b92a5612ec038827739259bc9459c76ab8 (
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 = ''
$gitlab->start();
$gitlab->waitForUnit("gitlab.service");
$gitlab->waitForUnit("gitlab-sidekiq.service");
$gitlab->waitUntilSucceeds("curl http://localhost:8080/users/sign_in");
'';
})
|