diff options
Diffstat (limited to 'distributed-test.nix')
-rw-r--r-- | distributed-test.nix | 6 |
1 files changed, 3 insertions, 3 deletions
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'") ''; } |