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

provider: adding a unit test covering the design of the encryption block #20462

Merged
merged 3 commits into from
Feb 15, 2023

Conversation

tombuildsstuff
Copy link
Contributor

We have a mostly consistent implementation of encryption blocks across new resources - where the presence of the encryption block means that a customer managed key should be enabled (with required fields inside of it) - and the omission of the block meaning that the service provided key should be used instead.

There's a handful of both data sources and resources which don't match these rules, to avoid this test failing these have been explicitly allowed to fail until v4.0 - but this should prevent new data sources/resources, or new functionality within existing ones from being added to the provider.

…block marked as Computed

These should instead be marked as `Computed: false` and use delta/patch updates - allowing users to use `ignore_changes` across the Provider
whilst there's a subset of resources which support this today - these have been temporarily excluded to allow this to be fixed in 4.0
This'll make this obvious when we look to enable the feature-flags
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tombuildsstuff tombuildsstuff merged commit 5b07315 into main Feb 15, 2023
@tombuildsstuff tombuildsstuff deleted the f/schema-validation-encryption branch February 15, 2023 09:21
@github-actions
Copy link

This functionality has been released in v3.44.0 of the Terraform 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
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

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

Successfully merging this pull request may close these issues.

None yet

2 participants