Skip to content

Commit 999ea43

Browse files
authored
Merge pull request hashicorp#1003 from modular-magician/codegen-pr-2136
Fix generated iam parent resource name
2 parents ad3488a + 6ab5ffb commit 999ea43

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

google-beta/iam_pubsub_topic_generated_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestAccPubsubTopicIamBindingGenerated(t *testing.T) {
4040
},
4141
{
4242
ResourceName: "google_pubsub_topic_iam_binding.foo",
43-
ImportStateId: fmt.Sprintf("projects/%s/topics/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("example-topic-%s", context["random_suffix"])),
43+
ImportStateId: fmt.Sprintf("projects/%s/topics/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("example-topic%s", context["random_suffix"])),
4444
ImportState: true,
4545
ImportStateVerify: true,
4646
},
@@ -50,7 +50,7 @@ func TestAccPubsubTopicIamBindingGenerated(t *testing.T) {
5050
},
5151
{
5252
ResourceName: "google_pubsub_topic_iam_binding.foo",
53-
ImportStateId: fmt.Sprintf("projects/%s/topics/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("example-topic-%s", context["random_suffix"])),
53+
ImportStateId: fmt.Sprintf("projects/%s/topics/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("example-topic%s", context["random_suffix"])),
5454
ImportState: true,
5555
ImportStateVerify: true,
5656
},
@@ -77,7 +77,7 @@ func TestAccPubsubTopicIamMemberGenerated(t *testing.T) {
7777
},
7878
{
7979
ResourceName: "google_pubsub_topic_iam_member.foo",
80-
ImportStateId: fmt.Sprintf("projects/%s/topics/%s roles/editor user:[email protected]", getTestProjectFromEnv(), fmt.Sprintf("example-topic-%s", context["random_suffix"])),
80+
ImportStateId: fmt.Sprintf("projects/%s/topics/%s roles/editor user:[email protected]", getTestProjectFromEnv(), fmt.Sprintf("example-topic%s", context["random_suffix"])),
8181
ImportState: true,
8282
ImportStateVerify: true,
8383
},
@@ -103,7 +103,7 @@ func TestAccPubsubTopicIamPolicyGenerated(t *testing.T) {
103103
},
104104
{
105105
ResourceName: "google_pubsub_topic_iam_policy.foo",
106-
ImportStateId: fmt.Sprintf("projects/%s/topics/%s", getTestProjectFromEnv(), fmt.Sprintf("example-topic-%s", context["random_suffix"])),
106+
ImportStateId: fmt.Sprintf("projects/%s/topics/%s", getTestProjectFromEnv(), fmt.Sprintf("example-topic%s", context["random_suffix"])),
107107
ImportState: true,
108108
ImportStateVerify: true,
109109
},

google-beta/iam_source_repo_repository_generated_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestAccSourceRepoRepositoryIamBindingGenerated(t *testing.T) {
4040
},
4141
{
4242
ResourceName: "google_sourcerepo_repository_iam_binding.foo",
43-
ImportStateId: fmt.Sprintf("projects/%s/repos/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("my-repository-%s", context["random_suffix"])),
43+
ImportStateId: fmt.Sprintf("projects/%s/repos/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("my-repository%s", context["random_suffix"])),
4444
ImportState: true,
4545
ImportStateVerify: true,
4646
},
@@ -50,7 +50,7 @@ func TestAccSourceRepoRepositoryIamBindingGenerated(t *testing.T) {
5050
},
5151
{
5252
ResourceName: "google_sourcerepo_repository_iam_binding.foo",
53-
ImportStateId: fmt.Sprintf("projects/%s/repos/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("my-repository-%s", context["random_suffix"])),
53+
ImportStateId: fmt.Sprintf("projects/%s/repos/%s roles/editor", getTestProjectFromEnv(), fmt.Sprintf("my-repository%s", context["random_suffix"])),
5454
ImportState: true,
5555
ImportStateVerify: true,
5656
},
@@ -77,7 +77,7 @@ func TestAccSourceRepoRepositoryIamMemberGenerated(t *testing.T) {
7777
},
7878
{
7979
ResourceName: "google_sourcerepo_repository_iam_member.foo",
80-
ImportStateId: fmt.Sprintf("projects/%s/repos/%s roles/editor user:[email protected]", getTestProjectFromEnv(), fmt.Sprintf("my-repository-%s", context["random_suffix"])),
80+
ImportStateId: fmt.Sprintf("projects/%s/repos/%s roles/editor user:[email protected]", getTestProjectFromEnv(), fmt.Sprintf("my-repository%s", context["random_suffix"])),
8181
ImportState: true,
8282
ImportStateVerify: true,
8383
},
@@ -103,7 +103,7 @@ func TestAccSourceRepoRepositoryIamPolicyGenerated(t *testing.T) {
103103
},
104104
{
105105
ResourceName: "google_sourcerepo_repository_iam_policy.foo",
106-
ImportStateId: fmt.Sprintf("projects/%s/repos/%s", getTestProjectFromEnv(), fmt.Sprintf("my-repository-%s", context["random_suffix"])),
106+
ImportStateId: fmt.Sprintf("projects/%s/repos/%s", getTestProjectFromEnv(), fmt.Sprintf("my-repository%s", context["random_suffix"])),
107107
ImportState: true,
108108
ImportStateVerify: true,
109109
},

0 commit comments

Comments
 (0)