Skip to content

Commit f9fb977

Browse files
committed
Change CRI KMS key and remove plancheck
1 parent 405c22c commit f9fb977

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

+3-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"testing"
77

88
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
9-
"github.com/hashicorp/terraform-plugin-testing/plancheck"
109

1110
"github.com/hashicorp/terraform-provider-google/google/acctest"
1211
)
@@ -31,11 +30,6 @@ func TestAccGeminiCodeRepositoryIndex_update(t *testing.T) {
3130
},
3231
{
3332
Config: testAccGeminiCodeRepositoryIndex_update(context),
34-
ConfigPlanChecks: resource.ConfigPlanChecks{
35-
PreApply: []plancheck.PlanCheck{
36-
plancheck.ExpectResourceAction("google_gemini_code_repository_index.example", plancheck.ResourceActionUpdate),
37-
},
38-
},
3933
},
4034
{
4135
ResourceName: "google_gemini_code_repository_index.example",
@@ -54,7 +48,7 @@ resource "google_gemini_code_repository_index" "example" {
5448
labels = {"ccfe_debug_note": "terraform_e2e_should_be_deleted"}
5549
location = "us-central1"
5650
code_repository_index_id = "test-cri-index-example"
57-
kms_key = "projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample"
51+
kms_key = "projects/cloud-code-rag-github-access/locations/us-central1/keyRings/keyring-example-basic1/cryptoKeys/crypto-key-example"
5852
}
5953
`, context)
6054
}
@@ -65,8 +59,8 @@ resource "google_gemini_code_repository_index" "example" {
6559
provider = google-beta
6660
labels = {"ccfe_debug_note": "terraform_e2e_should_be_deleted", "new_label": "new_val"}
6761
location = "us-central1"
68-
code_repository_index_id = "test-cri-index-example"
69-
kms_key = "projects/projectExample/locations/locationExample/keyRings/keyRingExample/cryptoKeys/cryptoKeyExample"
62+
code_repository_index_id = "test-cri-index-example-update"
63+
kms_key = "projects/cloud-code-rag-github-access/locations/us-central1/keyRings/keyring-example-basic1/cryptoKeys/crypto-key-example"
7064
}
7165
`, context)
7266
}

0 commit comments

Comments
 (0)