diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-09-10 18:01:37 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2022-09-10 18:09:08 +0200 |
commit | ad0108d803c9e74c08d70061301d8780e428abe5 (patch) | |
tree | b49c075f021554099e25e34021db9ebaab119546 /nixos | |
parent | 6a66cf1b901efaf1b711c7d4423fc09e001ad13e (diff) |
nixos/gollum: add test
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/gollum.nix | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index f3cde7e23a164..230ad47f3bfac 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -189,6 +189,7 @@ in { gobgpd = handleTest ./gobgpd.nix {}; gocd-agent = handleTest ./gocd-agent.nix {}; gocd-server = handleTest ./gocd-server.nix {}; + gollum = handleTest ./gollum.nix {}; google-oslogin = handleTest ./google-oslogin {}; gotify-server = handleTest ./gotify-server.nix {}; grafana = handleTest ./grafana.nix {}; diff --git a/nixos/tests/gollum.nix b/nixos/tests/gollum.nix new file mode 100644 index 0000000000000..833db87f2f326 --- /dev/null +++ b/nixos/tests/gollum.nix @@ -0,0 +1,14 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "gollum"; + + nodes = { + webserver = { pkgs, lib, ... }: { + services.gollum.enable = true; + }; + }; + + testScript = { nodes, ... }: '' + webserver.wait_for_unit("gollum") + webserver.wait_for_open_port(${toString nodes.webserver.config.services.gollum.port}) + ''; +}) |