From a4291c6d896c6653b26bc6a3fe124068de4916e0 Mon Sep 17 00:00:00 2001 From: Vika Date: Fri, 13 May 2022 12:33:48 +0300 Subject: nixos-test: use proper content-type for onboarding It looks like previous versions did not check Content-Type and I was able to get away with it. Warp is much more strict in that regard (and it is good). --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 5d1aed1..05876c6 100644 --- a/flake.nix +++ b/flake.nix @@ -251,7 +251,7 @@ with subtest("Onboarding should correctly work..."): kittybox.copy_from_host("${./onboarding.json}", "/root/onboarding.json") - kittybox.succeed("curl -vvv http://localhost:8080/ -d@/root/onboarding.json") + kittybox.succeed("curl -vvv http://localhost:8080/onboarding -d@/root/onboarding.json -H 'Content-Type: application/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'") ''; -- cgit 1.4.1