mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 00:27:30 +00:00
Fix tests
This commit is contained in:
@@ -260,7 +260,7 @@ def send_raw_acme_req(context: Context, url: str):
|
|||||||
replace_vars(content["payload"], context.vars) if "payload" in content else None
|
replace_vars(content["payload"], context.vars) if "payload" in content else None
|
||||||
)
|
)
|
||||||
alg = acme_client.net.alg
|
alg = acme_client.net.alg
|
||||||
encoded_payload = json.dumps(payload).encode() if payload else b""
|
encoded_payload = json.dumps(payload).encode() if payload is not None else b""
|
||||||
protected_headers = json.dumps(protected)
|
protected_headers = json.dumps(protected)
|
||||||
signature = alg.sign(
|
signature = alg.sign(
|
||||||
key=acme_client.net.key.key,
|
key=acme_client.net.key.key,
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ export const pkiAcmeServiceFactory = ({
|
|||||||
throw new AcmeMalformedError({ detail: `Invalid JWS payload: ${error.message}` });
|
throw new AcmeMalformedError({ detail: `Invalid JWS payload: ${error.message}` });
|
||||||
}
|
}
|
||||||
logger.error(error, "Unexpected error while parsing JWS payload");
|
logger.error(error, "Unexpected error while parsing JWS payload");
|
||||||
throw new AcmeServerInternalError({ detail: "Failed to verify JWS payload" });
|
throw new AcmeMalformedError({ detail: "Failed to verify JWS payload" });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user