diff options
-rw-r--r-- | release.nix | 1 | ||||
-rw-r--r-- | tests/gitlab.nix | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/release.nix b/release.nix index cf7c777..6b1340b 100644 --- a/release.nix +++ b/release.nix @@ -8,6 +8,7 @@ common = import tests/common.nix; desktop = import tests/desktop.nix; container-shape = import tests/container-shape.nix; + gitlab = import tests/gitlab.nix; }; } diff --git a/tests/gitlab.nix b/tests/gitlab.nix new file mode 100644 index 0000000..a3d641b --- /dev/null +++ b/tests/gitlab.nix @@ -0,0 +1,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"); + ''; +}) |