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. --- tests/gitlab.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/gitlab.nix (limited to 'tests') 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