From d14d64e11e4e2c5d55e309b4adcc779508b2a5c7 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Thu, 30 Oct 2025 21:37:41 -0700 Subject: [PATCH] Fix tell ready --- backend/bdd/features/pki/acme/challenge.feature | 1 - backend/bdd/features/steps/pki_acme.py | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/bdd/features/pki/acme/challenge.feature b/backend/bdd/features/pki/acme/challenge.feature index e6b0b7885..8e7dad523 100644 --- a/backend/bdd/features/pki/acme/challenge.feature +++ b/backend/bdd/features/pki/acme/challenge.feature @@ -19,4 +19,3 @@ Feature: Challenge Then I select challenge with type http-01 for domain localhost from order at order as challenge Then I serve challenge response for challenge at localhost Then I tell ACME server that challenge is ready to be verified - diff --git a/backend/bdd/features/steps/pki_acme.py b/backend/bdd/features/steps/pki_acme.py index 7562cfd2c..c5627bb8b 100644 --- a/backend/bdd/features/steps/pki_acme.py +++ b/backend/bdd/features/steps/pki_acme.py @@ -369,7 +369,6 @@ def step_impl(context: Context, var_path: str, hostname: str): @then("I tell ACME server that {var_path} is ready to be verified") def step_impl(context: Context, var_path: str): challenge = eval_var(context, var_path, as_json=False) - acme_challenge = challenge.chall - acme_client = challenge.acme_client - response, validation = acme_challenge.response_and_validation(acme_client.net.key) - acme_client.answer_challenge(acme_challenge, response) + acme_client = context.acme_client + response, validation = challenge.response_and_validation(acme_client.net.key) + acme_client.answer_challenge(challenge, response)