From 096421f921665a358e8c000ca8a5493dda5f7b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KJ=20=C3=98rbekk?= Date: Tue, 16 May 2017 14:48:52 -0400 Subject: Add gitlab test. --- release.nix | 1 + tests/gitlab.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/gitlab.nix 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 ( { 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"); + ''; +}) -- cgit v1.2.3