Skip to content

Commit

Permalink
dlp update test fix - avoid tag collisions (#12988)
Browse files Browse the repository at this point in the history
  • Loading branch information
c2thorn authored Feb 7, 2025
1 parent ee2fbd5 commit f16f4a3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,12 @@ data "google_project" "project" {
resource "google_tags_tag_key" "tag_key" {
parent = "projects/${data.google_project.project.number}"
short_name = "environment"
short_name = "tf_test_environment%{random_suffix}"
}
resource "google_tags_tag_value" "tag_value" {
parent = google_tags_tag_key.tag_key.id
short_name = "prod"
short_name = "tf_test_prod%{random_suffix}"
}
resource "google_data_loss_prevention_inspect_template" "basic" {
Expand Down Expand Up @@ -587,7 +587,7 @@ resource "google_data_loss_prevention_discovery_config" "basic" {
tag_resources {
tag_conditions {
tag {
namespaced_value = "%{project}/environment/prod"
namespaced_value = "%{project}/tf_test_environment%{random_suffix}/tf_test_prod%{random_suffix}"
}
sensitivity_score {
score = "SENSITIVITY_HIGH"
Expand Down

0 comments on commit f16f4a3

Please sign in to comment.