-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor WireMock mappings/files, reset before tests
- Loading branch information
Showing
14 changed files
with
86 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
dockerfiles/wiremock/__files/custom_domain_verification/cd_auth0managed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"custom_domain_id": "cd_auth0managed", | ||
"domain": "terraform-provider.auth0.com", | ||
"primary": true, | ||
"status": "{{parameters.status}}", | ||
"type": "auth0_managed_certs", | ||
{{#eq parameters.status "ready"}} | ||
"origin_domain_name": "terraform-provider-cd-auth0managed.edge.tenants.eu.auth0.com", | ||
{{/eq}} | ||
"verification": { | ||
"methods": [ | ||
{ | ||
"name": "cname", | ||
"record": "terraform-provider-cd-auth0managed.edge.tenants.eu.auth0.com" | ||
} | ||
] | ||
}, | ||
"tls_policy": "recommended" | ||
} |
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
dockerfiles/wiremock/__files/custom_domain_with_pending_verification.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ck/mappings/delete_custom_domain_204.json → ...naged_certs/delete_custom_domain_204.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ain_verification/with_auth0_managed_certs/get_custom_domain_pending_verification_200.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"scenarioName": "Custom domain verification with Auth0-managed certificates", | ||
"requiredScenarioState": "Started", | ||
"request": { | ||
"method": "GET", | ||
"url": "/api/v2/custom-domains/cd_auth0managed" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "custom_domain_verification/cd_auth0managed.json", | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"transformerParameters": { | ||
"status": "pending_verification" | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ings/custom_domain_verification/with_auth0_managed_certs/get_custom_domain_ready_200.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"scenarioName": "Custom domain verification with Auth0-managed certificates", | ||
"requiredScenarioState": "Verified", | ||
"request": { | ||
"method": "GET", | ||
"url": "/api/v2/custom-domains/cd_auth0managed" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "custom_domain_verification/cd_auth0managed.json", | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"transformerParameters": { | ||
"status": "ready" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...gs/custom_domain_verification/with_auth0_managed_certs/post_custom_domain_verify_200.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"scenarioName": "Custom domain verification with Auth0-managed certificates", | ||
"requiredScenarioState": "Started", | ||
"newScenarioState": "Verified", | ||
"request": { | ||
"method": "POST", | ||
"url": "/api/v2/custom-domains/cd_auth0managed/verify" | ||
}, | ||
"response": { | ||
"status": 201, | ||
"bodyFileName": "custom_domain_verification/cd_auth0managed.json", | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"transformerParameters": { | ||
"status": "ready" | ||
} | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
dockerfiles/wiremock/mappings/get_custom_domain_pending_200.json
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
dockerfiles/wiremock/mappings/get_custom_domain_ready_200.json
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
dockerfiles/wiremock/mappings/post_custom_domain_verify_200.json
This file was deleted.
Oops, something went wrong.