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. --- smoke-test.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'smoke-test.nix') diff --git a/smoke-test.nix b/smoke-test.nix index fbbc8a7..3965e7b 100644 --- a/smoke-test.nix +++ b/smoke-test.nix @@ -17,7 +17,7 @@ kittybox: }; environment.systemPackages = with pkgs; [ - curl + xh ]; }; }; @@ -25,12 +25,12 @@ kittybox: testScript = '' with subtest("Verify that Kittybox started correctly..."): kittybox.wait_for_open_port(8080) - kittybox.succeed("curl --silent http://localhost:8080/micropub") + kittybox.succeed("xh --no-check-status http://localhost:8080/.kittybox/micropub") with subtest("Onboarding should correctly work..."): kittybox.copy_from_host("${./onboarding.json}", "/root/onboarding.json") - kittybox.succeed("curl -vvv http://localhost:8080/onboarding -d@/root/onboarding.json -H 'Content-Type: application/json'") + kittybox.succeed("xh --follow http://localhost:8080/.kittybox/onboarding -j @/root/onboarding.json") # Testing for a known string is the easiest way to determine that the onboarding worked - kittybox.succeed("curl --silent http://localhost:8080/ | grep 'vestige of the past long gone'") + kittybox.succeed("xh http://localhost:8080/ | grep 'vestige of the past long gone'") ''; } -- cgit 1.4.1