From ad96a2e52b82793adc2bd25fe57507174f4ae3a9 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 16 Sep 2020 09:03:28 -0700 Subject: [PATCH] nixos/tests/cfssl: Use curl --fail --- nixos/tests/cfssl.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/cfssl.nix b/nixos/tests/cfssl.nix index e291fc285fb..170f09d9b76 100644 --- a/nixos/tests/cfssl.nix +++ b/nixos/tests/cfssl.nix @@ -38,7 +38,7 @@ import ./make-test-python.nix ({ pkgs, ...} : { 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 {