Add new account

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:17:46 -08:00
parent 6b220030d1
commit c4ced36767
7 changed files with 81 additions and 11 deletions
@@ -0,0 +1,13 @@
Feature: Directory
Scenario: Get the directory of ACME service urls
Given I have an ACME cert profile as "acme_profile"
When I send a GET request to "/api/v1/pki/acme/profiles/{acme_profile.id}/directory"
Then the response status code should be "200"
Then the response body should match JSON value
"""
{
"newNonce": "{BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/new-nonce",
"newAccount": "{BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/new-account",
"newOrder": "{BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/new-order"
}
"""
@@ -0,0 +1,4 @@
Feature: New Account
Scenario: Create a new account
Given I have an ACME cert profile as "acme_profile"
When I register a new ACME account
@@ -1,6 +1,6 @@
Feature: Nonce
Scenario: Generate a new nonce
Given I have a PKI project as "pki_project"
When I send a HEAD request to "/api/v1/pki/acme/profiles/{pki_project.id}/new-nonce"
Given I have an ACME cert profile as "acme_profile"
When I send a HEAD request to "/api/v1/pki/acme/profiles/{acme_profile.id}/new-nonce"
Then the response status code should be "200"
Then the response header "Replay-Nonce" should contains non-empty value