Skip to content

Commit 9ae7a8d

Browse files
authored
test fixes (#1185)
1 parent a0bd5e8 commit 9ae7a8d

3 files changed

+5
-5
lines changed

google/resource_container_cluster_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ func TestAccContainerCluster_withIPAllocationPolicy(t *testing.T) {
713713
"services_secondary_range_name": "services",
714714
},
715715
),
716-
ExpectError: regexp.MustCompile("services secondary range \"pods\" not found in subnet"),
716+
ExpectError: regexp.MustCompile("services secondary range \"services\" not found in subnet"),
717717
},
718718
},
719719
})

google/resource_google_folder_organization_policy_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func TestAccFolderOrganizationPolicy_list_allowSome(t *testing.T) {
8383
Steps: []resource.TestStep{
8484
{
8585
Config: testAccFolderOrganizationPolicy_list_allowSome(org, folder, project),
86-
Check: testAccCheckGoogleFolderOrganizationListPolicyAllowedValues("list", []string{project}),
86+
Check: testAccCheckGoogleFolderOrganizationListPolicyAllowedValues("list", []string{"projects/" + project}),
8787
},
8888
},
8989
})
@@ -293,7 +293,7 @@ resource "google_folder_organization_policy" "list" {
293293
294294
list_policy {
295295
allow {
296-
values = ["%s"]
296+
values = ["projects/%s"]
297297
}
298298
}
299299
}

google/resource_google_organization_policy_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestAccOrganizationPolicy_list_allowSome(t *testing.T) {
9090
Steps: []resource.TestStep{
9191
{
9292
Config: testAccOrganizationPolicy_list_allowSome(org, project),
93-
Check: testAccCheckGoogleOrganizationListPolicyAllowedValues("list", []string{project}),
93+
Check: testAccCheckGoogleOrganizationListPolicyAllowedValues("list", []string{"projects/" + project}),
9494
},
9595
{
9696
ResourceName: "google_organization_policy.list",
@@ -293,7 +293,7 @@ resource "google_organization_policy" "list" {
293293
list_policy {
294294
allow {
295295
values = [
296-
"%s",
296+
"projects/%s",
297297
]
298298
}
299299
}

0 commit comments

Comments
 (0)