summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKJ Ørbekk <kj@orbekk.com>2017-05-16 14:48:52 -0400
committerKJ Ørbekk <kj@orbekk.com>2017-05-16 14:48:52 -0400
commit096421f921665a358e8c000ca8a5493dda5f7b8f (patch)
tree189bdd7ec0a2fcbf0ca8fd03da76f04976cb202a /tests
parent78351eddedc918d0ee8c5066f3c9d3ddff17a4b6 (diff)
Add gitlab test.
Diffstat (limited to 'tests')
-rw-r--r--tests/gitlab.nix14
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");
+ '';
+})