More asserts

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:19:05 -08:00
parent 9bc22f8b3c
commit b50d7157b9
2 changed files with 45 additions and 40 deletions
+9 -2
View File
@@ -16,5 +16,12 @@ Feature: 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.authorizations[0] with jq .uri should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/authorizations/(.+)
Then the value order.authorizations[0] with jq . should be equal to {}
Then the value order.authorizations[0].uri with jq . should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/authorizations/(.+)
Then the value order.authorizations[0].body with jq .status should be equal to "pending"
Then the value order.authorizations[0].body with jq .identifier should be equal to json
"""
{
"type": "dns",
"value": "localhost"
}
"""