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

Fix ZT lists update #4477

Conversation

sebassimoes
Copy link
Contributor

@sebassimoes sebassimoes commented Oct 30, 2024

When updating the cloudflare_zero_trust_list only changes to the items field was being considered to determine the list elements to store. However, customers can also use the items_with_description field to declare list elements with a description, so it also needs to be considered. This commit fixes the issue, adding an acceptance test to prove its effectiveness.

Closes #4119

Copy link
Contributor

github-actions bot commented Oct 30, 2024

changelog detected ✅

When updating the `cloudflare_zero_trust_list` only changes to the `items`
field was being considered to determine the list elements to store.
However, customers can also use the `items_with_description` field to
declare list elements with a description, so it also needs to be
considered. This commit fixes the issue, adding an acceptance test to
prove its effectiveness.
@sebassimoes sebassimoes force-pushed the sebastia/gfi-536-fix-zt-list-items-update branch from b48a204 to bef5629 Compare October 30, 2024 12:31
@jacobbednarz
Copy link
Member

acceptance tests all passing

TF_ACC=1 go test ./internal/sdkv2provider -v -run "^TestAccCloudflareTeamsList_" -count 1 -timeout 120m -parallel 1
=== RUN   TestAccCloudflareTeamsList_Basic
--- PASS: TestAccCloudflareTeamsList_Basic (4.17s)
=== RUN   TestAccCloudflareTeamsList_BasicWithDescription
--- PASS: TestAccCloudflareTeamsList_BasicWithDescription (12.02s)
=== RUN   TestAccCloudflareTeamsList_LottaListItems
--- PASS: TestAccCloudflareTeamsList_LottaListItems (17.03s)
=== RUN   TestAccCloudflareTeamsList_Reordered
--- PASS: TestAccCloudflareTeamsList_Reordered (4.64s)
PASS
ok  	github.com/cloudflare/terraform-provider-cloudflare/internal/sdkv2provider	39.504s

@jacobbednarz jacobbednarz merged commit a926ff0 into cloudflare:master Nov 12, 2024
7 checks passed
@github-actions github-actions bot added this to the v4.46.0 milestone Nov 12, 2024
Copy link
Contributor

This functionality has been released in v4.46.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 Nov 13, 2024
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_teams_list not updating items_with_description
2 participants