summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorMichal Koutenský <michal@koutensky.net>2022-12-21 01:08:48 +0100
committerMichal Koutenský <michal@koutensky.net>2023-05-07 22:43:23 +0200
commit8118e3de43d2303449af0d0ee5cd3c6d32021d51 (patch)
tree8fe9fee540d52e6f186c0d04a61ac2d9fae8ba72 /nixos/tests
parent9f0fa3dcc8c35b783ed9ce4a86b0d11b10d561e2 (diff)
downloadnixpkgs-8118e3de43d2303449af0d0ee5cd3c6d32021d51.tar
nixpkgs-8118e3de43d2303449af0d0ee5cd3c6d32021d51.tar.gz
nixpkgs-8118e3de43d2303449af0d0ee5cd3c6d32021d51.tar.bz2
nixpkgs-8118e3de43d2303449af0d0ee5cd3c6d32021d51.tar.lz
nixpkgs-8118e3de43d2303449af0d0ee5cd3c6d32021d51.tar.xz
nixpkgs-8118e3de43d2303449af0d0ee5cd3c6d32021d51.tar.zst
nixpkgs-8118e3de43d2303449af0d0ee5cd3c6d32021d51.zip
nixos/gonic: init
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/gonic.nix18
2 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 9acb2dc7a45..03fa8e046b9 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -279,6 +279,7 @@ in {
   gocd-agent = handleTest ./gocd-agent.nix {};
   gocd-server = handleTest ./gocd-server.nix {};
   gollum = handleTest ./gollum.nix {};
+  gonic = handleTest ./gonic.nix {};
   google-oslogin = handleTest ./google-oslogin {};
   gotify-server = handleTest ./gotify-server.nix {};
   grafana = handleTest ./grafana {};
diff --git a/nixos/tests/gonic.nix b/nixos/tests/gonic.nix
new file mode 100644
index 00000000000..726d7da0970
--- /dev/null
+++ b/nixos/tests/gonic.nix
@@ -0,0 +1,18 @@
+import ./make-test-python.nix ({ pkgs, ... }: {
+  name = "gonic";
+
+  nodes.machine = { ... }: {
+    services.gonic = {
+      enable = true;
+      settings = {
+        music-path = [ "/tmp" ];
+        podcast-path = "/tmp";
+      };
+    };
+  };
+
+  testScript = ''
+    machine.wait_for_unit("gonic")
+    machine.wait_for_open_port(4747)
+  '';
+})