about summary refs log tree commit diff
path: root/nixos/tests/wastebin.nix
diff options
context:
space:
mode:
authorPablo Ovelleiro Corral <mail@pablo.tools>2024-04-01 02:55:15 +0200
committerGitHub <noreply@github.com>2024-04-01 04:55:15 +0400
commit7f797a698f835e6744971c17d33abb5485729bd3 (patch)
tree49462006de79b1bd8b2a661ea612e5bf9d49d87e /nixos/tests/wastebin.nix
parentdbe5775901382086375f0a94cb43fdf4a36ed48c (diff)
wastebin: init at 2.4.3 (#287455)
* wastebin: init at 2.4.3

* nixos/wastebin: init

Add module and test for wastebin
Diffstat (limited to 'nixos/tests/wastebin.nix')
-rw-r--r--nixos/tests/wastebin.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/wastebin.nix b/nixos/tests/wastebin.nix
new file mode 100644
index 0000000000000..1cf0ff80ae99d
--- /dev/null
+++ b/nixos/tests/wastebin.nix
@@ -0,0 +1,19 @@
+import ./make-test-python.nix ({ pkgs, lib, ... }: {
+  name = "wastebin";
+
+  meta = {
+    maintainers = with lib.maintainers; [ pinpox ];
+  };
+
+  nodes.machine = { pkgs, ... }: {
+    services.wastebin = {
+      enable = true;
+    };
+  };
+
+  testScript = ''
+    machine.wait_for_unit("wastebin.service")
+    machine.wait_for_open_port(8088)
+    machine.succeed("curl --fail http://localhost:8088/")
+  '';
+})