From 558c4078fd6b5c10bfbcac826774335904807e39 Mon Sep 17 00:00:00 2001 From: Vika Date: Sat, 28 May 2022 21:05:19 +0300 Subject: feat: group endpoints under `.kittybox` Actually got the idea from https://xeiaso.net/, who groups xer website's endpoints under the `.within` folder. --- distributed-test.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'distributed-test.nix') diff --git a/distributed-test.nix b/distributed-test.nix index 539bd0c..39a080b 100644 --- a/distributed-test.nix +++ b/distributed-test.nix @@ -12,7 +12,7 @@ kittybox: backendUri = "file:///srv/kittybox"; }; - environment.systemPackages = with pkgs; [ xh curl ]; + environment.systemPackages = with pkgs; [ xh ]; virtualisation.fileSystems."/srv" = { fsType = "nfs"; @@ -80,10 +80,10 @@ in { # Onboarding servants[0].copy_from_host("${./onboarding.json}", "/root/onboarding.json") - servants[0].succeed("curl -vvv http://localhost:8080/onboarding -d@/root/onboarding.json -H 'Content-Type: application/json'") + servants[0].succeed("xh --follow http://localhost:8080/.kittybox/onboarding -j @/root/onboarding.json") # Check that all machines got this address onboarded for machine in servants: - machine.succeed("curl --silent http://localhost:8080/ | grep 'vestige of the past long gone'") + machine.succeed("xh http://localhost:8080/ | grep 'vestige of the past long gone'") ''; } -- cgit 1.4.1