summary refs log tree commit diff
path: root/nixos/tests/sanoid.nix
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2021-07-24 22:08:42 +0200
committerGitHub <noreply@github.com>2021-07-24 22:08:42 +0200
commit6984e68c51f504765c68fc9e88f4dc51d43bdb1d (patch)
tree25e901448e1b5a1ed26a20a8a7b4a8d1494a72ff /nixos/tests/sanoid.nix
parenta378740356e1f5a091382f9e71889a084a23dc45 (diff)
parentd05a1ab1e4c21a956d883af2252818c4ca486d1e (diff)
downloadnixpkgs-6984e68c51f504765c68fc9e88f4dc51d43bdb1d.tar
nixpkgs-6984e68c51f504765c68fc9e88f4dc51d43bdb1d.tar.gz
nixpkgs-6984e68c51f504765c68fc9e88f4dc51d43bdb1d.tar.bz2
nixpkgs-6984e68c51f504765c68fc9e88f4dc51d43bdb1d.tar.lz
nixpkgs-6984e68c51f504765c68fc9e88f4dc51d43bdb1d.tar.xz
nixpkgs-6984e68c51f504765c68fc9e88f4dc51d43bdb1d.tar.zst
nixpkgs-6984e68c51f504765c68fc9e88f4dc51d43bdb1d.zip
Merge pull request #98455 from ju1m/syncoid-split
nixos/syncoid: split in multiple systemd services and harden them
Diffstat (limited to 'nixos/tests/sanoid.nix')
-rw-r--r--nixos/tests/sanoid.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/tests/sanoid.nix b/nixos/tests/sanoid.nix
index 1983945915f..7cef51e4201 100644
--- a/nixos/tests/sanoid.nix
+++ b/nixos/tests/sanoid.nix
@@ -44,7 +44,7 @@ in {
           # Sync snapshot taken by sanoid
           "pool/sanoid" = {
             target = "root@target:pool/sanoid";
-            extraArgs = [ "--no-sync-snap" ];
+            extraArgs = [ "--no-sync-snap" "--create-bookmark" ];
           };
           # Take snapshot and sync
           "pool/syncoid".target = "root@target:pool/syncoid";
@@ -92,8 +92,9 @@ in {
     # Sync snapshots
     target.wait_for_open_port(22)
     source.succeed("touch /mnt/pool/syncoid/test.txt")
-    source.systemctl("start --wait syncoid.service")
+    source.systemctl("start --wait syncoid-pool-sanoid.service")
     target.succeed("cat /mnt/pool/sanoid/test.txt")
+    source.systemctl("start --wait syncoid-pool-syncoid.service")
     target.succeed("cat /mnt/pool/syncoid/test.txt")
   '';
 })