about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/git-clone-spectrum.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/git-clone-spectrum.nix b/tests/git-clone-spectrum.nix
new file mode 100644
index 000000000000..df4486bace6d
--- /dev/null
+++ b/tests/git-clone-spectrum.nix
@@ -0,0 +1,20 @@
+{ pkgs ? import ./.. {} }: pkgs.nixosTest {
+  name = "git-clone";
+
+  nodes.machine = { pkgs, ... }: {
+    imports = [
+      ../modules/server/spectrum/git
+      ../modules/server/spectrum/git-http-backend
+    ];
+
+    environment.systemPackages = [ pkgs.gitMinimal ];
+
+    networking.hostName = "spectrum-os";
+    networking.domain = "org";
+  };
+  
+  testScript = ''
+    machine.wait_for_unit("nginx.service")
+    machine.succeed("git clone http://spectrum-os.org/git/spectrum")
+  '';
+}