summary refs log blame commit diff
path: root/nixos/tests/gitlab.nix
blob: 27c65fe47e8d8f5142fc82297df255478f80105c (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                  
                                                                      





                                           

                                                                           

     
# 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");
  '';
}