-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/cloudflare_page_rule: Swap
cache_key_fields
to use TypeSet (…
…#914) * swap schema to use Set * resource/cloudflare_page_rule: Swap `cache_key_fields` to use TypeSet When this resource was introduced, it was done so using `TypeList` for the inner structure. In Terraform, `TypeList` is used for ordered lists whereas `TypeSet` is for unordered. This was working for the most part however the `cache_key_fields` fields don't place any importance on the order so they are returned from the API with inconsistent ordering. To address this issue, we need to swap the representation to be `TypeSet` and ignore any changes in the ordering when comparing to the state. Fixes #890 * resource/cloudflare_page_rule: default to `include = "*"` Should the resource not have any `include`, `exclude` or `ignore` attributes, we default to including all query strings in the cache key. * protect against nil values on the query_string * update TestCacheKeyFieldsNilValue assertion * fix cache_key_fields header assertion
- Loading branch information
1 parent
a0719c9
commit 69ccf5c
Showing
3 changed files
with
221 additions
and
29 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 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