diff options
author | Michal Koutenský <michal@koutensky.net> | 2022-12-21 01:08:48 +0100 |
---|---|---|
committer | Michal Koutenský <michal@koutensky.net> | 2023-05-07 22:43:23 +0200 |
commit | 8118e3de43d2303449af0d0ee5cd3c6d32021d51 (patch) | |
tree | 8fe9fee540d52e6f186c0d04a61ac2d9fae8ba72 /nixos/tests | |
parent | 9f0fa3dcc8c35b783ed9ce4a86b0d11b10d561e2 (diff) |
nixos/gonic: init
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/gonic.nix | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 9acb2dc7a45bd..03fa8e046b91c 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 0000000000000..726d7da0970f7 --- /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) + ''; +}) |