Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/cloudflare_certificate_pack: handle deletion via UI #2497

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

jacobbednarz
Copy link
Member

The deletion policy for certificate packs is a little different and for a short period of time following deletion, the URL does not return a 404 like most other resources. Instead, it will return a HTTP 200 with the status field set to deleted. This isn't standard handling so we'll explicitly account for both of these scenarios.

Closes #2461

The deletion policy for certificate packs is a little different and for
a short period of time following deletion, the URL does not return a 404
like most other resources. Instead, it will return a HTTP 200 with the
`status` field set to deleted. This isn't standard handling so we'll
explicitly account for both of these scenarios.
@github-actions
Copy link

github-actions bot commented Jun 5, 2023

changelog detected ✅

@jacobbednarz
Copy link
Member Author

acceptance tests all passing

TF_ACC=1 go test ./internal/sdkv2provider -v -run "^TestAccCertificatePack_" -count 1 -timeout 120m -parallel 1
=== RUN   TestAccCertificatePack_AdvancedDigicert
--- PASS: TestAccCertificatePack_AdvancedDigicert (15.78s)
=== RUN   TestAccCertificatePack_AdvancedLetsEncrypt
--- PASS: TestAccCertificatePack_AdvancedLetsEncrypt (14.66s)
=== RUN   TestAccCertificatePack_WaitForActive
--- PASS: TestAccCertificatePack_WaitForActive (20.65s)
PASS
ok  	github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider	52.096s

@jacobbednarz jacobbednarz merged commit 7d8d8d8 into master Jun 5, 2023
@jacobbednarz jacobbednarz deleted the remove-cert-from-state-after-deletion branch June 5, 2023 04:58
@github-actions github-actions bot added this to the v4.8.0 milestone Jun 5, 2023
github-actions bot pushed a commit that referenced this pull request Jun 5, 2023
@github-actions
Copy link

This functionality has been released in v4.8.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloudflare_certificate_pack doesn't notice when the resource is deleted from the UI
1 participant