Add ACME cert profile creation feature

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:19:58 -08:00
parent 3a84e9a50e
commit ebb4260386
5 changed files with 80 additions and 0 deletions
@@ -0,0 +1,23 @@
Feature: ACME Cert Profile
Scenario: Create a cert profile
Given I make a random slug as profile_slug
When I send a POST request to "/api/v1/pki/certificate-profiles" with JSON payload
"""
{
"projectId": "{PROJECT_ID}",
"slug": "{profile_slug}",
"description": "",
"enrollmentType": "acme",
"caId": "{CA_ID}",
"certificateTemplateId": "{CERT_TEMPLATE_ID}",
"acmeConfig": {}
}
"""
Then the value response.status should be equal to 201
Then the value response with jq .eab_kid should be present
Then the value response with jq .eab_secret should be present
Then the value response with jq .slug should be equal to {profile_slug}
Then the value response with jq .caId should be equal to {CA_ID}
Then the value response with jq .certificateTemplateId should be equal to {CERT_TEMPLATE_ID}
Then the value response with jq .enrollmentTYpe should be equal to acme