From 72f3cead67a1dc0b3b6e698bdccee41bbfbe7765 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 3 Sep 2023 03:21:43 +0200 Subject: [PATCH] checks/ascensions: add more incantations --- packages/checks/ascensions.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/checks/ascensions.nix b/packages/checks/ascensions.nix index 8efb819..c601790 100644 --- a/packages/checks/ascensions.nix +++ b/packages/checks/ascensions.nix @@ -55,7 +55,9 @@ testers.runNixOSTest { create-file = { before = [ "create-file.service" ]; incantations = m: with m; lib.optionals (hostName == "node2") [ - (move dataDir.node1 dataDir.node2) + (move dataDir.node1 "/data/somewhere/intermediate1") + (move "/data/somewhere/intermediate1" "/var/lib/intermediate2") + (move "/var/lib/intermediate2" dataDir.node2) ]; }; create-kv = { @@ -63,9 +65,13 @@ testers.runNixOSTest { before = [ "create-kv.service" ]; incantations = m: with m; lib.optionals (hostName == "node2") [ (execShellWith [ config.services.consul.package ] '' - consul kv put ${kvPath.node2} $(consul kv get ${kvPath.node1}) + consul kv put intermediate/data $(consul kv get ${kvPath.node1}) consul kv delete ${kvPath.node1} '') + (execShellWith [ config.services.consul.package ] '' + consul kv put ${kvPath.node2} $(consul kv get intermediate/data) + consul kv delete intermediate/data + '') ]; }; };