Add some asserts

This commit is contained in:
Fang-Pen Lin
2025-10-30 12:44:23 -07:00
parent 3a965bb43f
commit 1b827439b3
2 changed files with 2 additions and 2 deletions

View File

@@ -16,4 +16,4 @@ Feature: New Order
Then I create a RSA private key pair as cert_key
Then I sign the certificate signing request csr with private key cert_key and output it as csr_pem in PEM format
Then I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order
Then the value order.uri should be true for startswith("foo")
Then the value order.uri should be true for startswith("{BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/orders/")

View File

@@ -163,5 +163,5 @@ def step_impl(context: Context, var_path: str, query: str):
value = context.vars[parts[0]]
for part in parts[1:]:
value = getattr(value, part)
result = jq.compile(query).input_value(value).first()
result = jq.compile(replace_vars(query, context.vars)).input_value(value).first()
assert result, f"{value} does not match {query}"