about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2024-07-04 22:19:50 +0200
committerAlyssa Ross <hi@alyssa.is>2024-07-04 22:20:26 +0200
commit359fd07404bb046df595e5ccb10e1069aa6fe915 (patch)
tree5a4cfa99f757407b3ce9dc76a3fd87784754a3a9
parent73beaaabcfc1a90e80ac20098f11ce52f7d3b406 (diff)
downloadnixlib-359fd07404bb046df595e5ccb10e1069aa6fe915.tar
nixlib-359fd07404bb046df595e5ccb10e1069aa6fe915.tar.gz
nixlib-359fd07404bb046df595e5ccb10e1069aa6fe915.tar.bz2
nixlib-359fd07404bb046df595e5ccb10e1069aa6fe915.tar.lz
nixlib-359fd07404bb046df595e5ccb10e1069aa6fe915.tar.xz
nixlib-359fd07404bb046df595e5ccb10e1069aa6fe915.tar.zst
nixlib-359fd07404bb046df595e5ccb10e1069aa6fe915.zip
tests/git-clone-spectrum.nix: init
-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")
+  '';
+}