From 78047fdbaa6b2de517b5b619f5a2a01f7a26e20a Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Thu, 6 Nov 2025 18:03:02 -0800 Subject: [PATCH] Cover all --- backend/bdd/features/pki/acme/nonce.feature | 1 + backend/bdd/features/steps/pki_acme.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/bdd/features/pki/acme/nonce.feature b/backend/bdd/features/pki/acme/nonce.feature index 1c76d51f7..c3ec59ac4 100644 --- a/backend/bdd/features/pki/acme/nonce.feature +++ b/backend/bdd/features/pki/acme/nonce.feature @@ -45,6 +45,7 @@ Feature: Nonce | order | . | not_used | {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/new-order | | order | . | not_used | {order.uri} | | order | . | not_used | {order.uri}/finalize | + | order | . | not_used | {order.uri}/certificate | | order | .authorizations[0].uri | auth_uri | {auth_uri} | | order | .authorizations[0].body.challenges[0].url | challenge_uri | {challenge_uri} | diff --git a/backend/bdd/features/steps/pki_acme.py b/backend/bdd/features/steps/pki_acme.py index 9abe74ab4..02148b287 100644 --- a/backend/bdd/features/steps/pki_acme.py +++ b/backend/bdd/features/steps/pki_acme.py @@ -274,10 +274,10 @@ def send_raw_acme_req(context: Context, url: str): } ) base_url = context.vars["BASE_URL"] - url = urllib.parse.urljoin(base_url, replace_vars(url, context.vars)) + actual_url = urllib.parse.urljoin(base_url, replace_vars(url, context.vars)) response = acme_client.net._send_request( "POST", - url, + actual_url, data=jws, headers={"Content-Type": acme.client.ClientNetwork.JOSE_CONTENT_TYPE}, )