a4291c6d896c6653b26bc6a3fe124068de4916e0 — Vika 2 months ago 2595205
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).
1 files changed, 1 insertions(+), 1 deletions(-)

M flake.nix
M flake.nix => flake.nix +1 -1
@@ 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'")