about summary refs log tree commit diff
path: root/nixos/tests/pinnwand.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-04-29 23:53:37 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-05-03 16:52:05 +0200
commit7b2bc43dba0f705987cc8c1f35620a4021838ac8 (patch)
treecf00a30a3038063d3601ae5f9c6ce958cdfb7eb5 /nixos/tests/pinnwand.nix
parentf1c32c28096f565c0d977bce6cc3a0adb113d267 (diff)
nixos/tests/pinnwand: add negative-test for the reaper
The reaper, at this point, should not delete a freshly created paste.
Diffstat (limited to 'nixos/tests/pinnwand.nix')
-rw-r--r--nixos/tests/pinnwand.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/tests/pinnwand.nix b/nixos/tests/pinnwand.nix
index 7f6075c3c742d..dc8c2744a81f3 100644
--- a/nixos/tests/pinnwand.nix
+++ b/nixos/tests/pinnwand.nix
@@ -75,6 +75,12 @@ in
         if line.startswith("Removal link:"):
             removal_link = line.split(":", 1)[1]
 
+
+    # start the reaper, it shouldn't do anything meaningful here
+    server.systemctl("start pinnwand-reaper.service")
+    server.wait_until_fails("systemctl is-active -q pinnwand-reaper.service")
+    server.log(server.execute("journalctl -u pinnwand-reaper -e --no-pager")[1])
+
     # check whether paste matches what we sent
     client.succeed(f"curl {raw_url} > /tmp/machine-id")
     client.succeed("diff /tmp/machine-id /etc/machine-id")