nixos/tests/cfssl: Use curl --fail

Changed files
+1 -1
nixos
tests
+1 -1
nixos/tests/cfssl.nix
···
testScript =
let
cfsslrequest = with pkgs; writeScript "cfsslrequest" ''
-
curl -X POST -H "Content-Type: application/json" -d @${csr} \
+
curl -f -X POST -H "Content-Type: application/json" -d @${csr} \
http://localhost:8888/api/v1/cfssl/newkey | ${cfssl}/bin/cfssljson /tmp/certificate
'';
csr = pkgs.writeText "csr.json" (builtins.toJSON {