-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Added updation capability in google_data_loss_prevention_stored_info_type resource #7601
Added updation capability in google_data_loss_prevention_stored_info_type resource #7601
Conversation
This PR also targets the issue of |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 336 insertions(+), 4 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccFirebaserulesRelease_BasicRelease|TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample |
Tests passed during RECORDING mode: All tests passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment for now, but code looks good. Running the VCR tests now, and if those look good will approve.
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
-%> | ||
func storedInfoTypeCustomizeDiffFunc(diff TerraformResourceDiff) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a comment here to explain why this is needed? It could mention that updates can be done on these fields if they are changed, but not if the user changes between dictionary/regex/large_custom_dictionary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added comments for this customizedDiff in this PR.
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 336 insertions(+), 4 deletions(-)) |
Tests analyticsTotal tests: Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccFirebaserulesRelease_BasicRelease|TestAccApigeeKeystoresAliasesKeyCertFile_apigeeKeystoresAliasesKeyCertFileTestExample|TestAccApigeeEnvKeystoreAliasPkcs12_apigeeEnvKeystoreAliasPkcs12Example |
Tests passed during RECORDING mode: All tests passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just going to update the release notes a bit
…type resource (GoogleCloudPlatform#7601) * Added updation capability in data_loss_prevention_stored_info_type resource * Adjusted the extra whitespaces in the data_loss_prevention_stored_info_type_test file
…type resource (GoogleCloudPlatform#7601) * Added updation capability in data_loss_prevention_stored_info_type resource * Adjusted the extra whitespaces in the data_loss_prevention_stored_info_type_test file
…type resource (GoogleCloudPlatform#7601) * Added updation capability in data_loss_prevention_stored_info_type resource * Adjusted the extra whitespaces in the data_loss_prevention_stored_info_type_test file
…type resource (GoogleCloudPlatform#7601) * Added updation capability in data_loss_prevention_stored_info_type resource * Adjusted the extra whitespaces in the data_loss_prevention_stored_info_type_test file
…type resource (GoogleCloudPlatform#7601) * Added updation capability in data_loss_prevention_stored_info_type resource * Adjusted the extra whitespaces in the data_loss_prevention_stored_info_type_test file
Added updation capability for
dictionary
,regex
, andlarge_custom_dictionary
fields in thegoogle_data_loss_prevention_stored_info_type
resource.Added updation capability for the
group_indexes
subfield inside theregex
field in thegoogle_data_loss_prevention_stored_info_type
resource.fixes hashicorp/terraform-provider-google#8435
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
in the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)