diff options
Diffstat (limited to 'tests/gitlab.nix')
-rw-r--r-- | tests/gitlab.nix | 14 |
1 files changed, 14 insertions, 0 deletions
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"); + ''; +}) |