Skip to content

Commit 52fc2ba

Browse files
committed
Make CodeRepositoryIndex identifiers sweeper-findable
1 parent 993c343 commit 52fc2ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mmv1/third_party/terraform/services/gemini/resource_gemini_code_repository_index_test.go.tmpl

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
func TestAccGeminiCodeRepositoryIndex_update(t *testing.T) {
1414
bootstrappedKMS := acctest.BootstrapKMSKeyInLocation(t, "us-central1")
1515
context := map[string]interface{}{
16+
"random_suffix": acctest.RandString(t, 10),
1617
"project_id": os.Getenv("GOOGLE_PROJECT"),
1718
"kms_key": bootstrappedKMS.CryptoKey.Name,
1819
}
@@ -49,7 +50,7 @@ resource "google_gemini_code_repository_index" "example" {
4950
provider = google-beta
5051
labels = {"ccfe_debug_note": "terraform_e2e_should_be_deleted"}
5152
location = "us-central1"
52-
code_repository_index_id = "test-cri-index-example"
53+
code_repository_index_id = "tf-test-cri-index-example-%{random_suffix}"
5354
kms_key = "%{kms_key}"
5455
depends_on = [google_kms_crypto_key_iam_binding.crypto_key_binding]
5556
}
@@ -75,7 +76,7 @@ resource "google_gemini_code_repository_index" "example" {
7576
provider = google-beta
7677
labels = {"ccfe_debug_note": "terraform_e2e_should_be_deleted", "new_label": "new_val"}
7778
location = "us-central1"
78-
code_repository_index_id = "test-cri-index-example-update"
79+
code_repository_index_id = "tf-test-cri-index-example-update-%{random_suffix}"
7980
kms_key = "%{kms_key}"
8081
}
8182
`, context)

0 commit comments

Comments
 (0)