test fixes (#1185)

This commit is contained in:
Dana Hoffman 2018-03-12 13:18:39 -07:00 committed by GitHub
parent a0bd5e8fcb
commit 9ae7a8ddb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -713,7 +713,7 @@ func TestAccContainerCluster_withIPAllocationPolicy(t *testing.T) {
"services_secondary_range_name": "services", "services_secondary_range_name": "services",
}, },
), ),
ExpectError: regexp.MustCompile("services secondary range \"pods\" not found in subnet"), ExpectError: regexp.MustCompile("services secondary range \"services\" not found in subnet"),
}, },
}, },
}) })

View File

@ -83,7 +83,7 @@ func TestAccFolderOrganizationPolicy_list_allowSome(t *testing.T) {
Steps: []resource.TestStep{ Steps: []resource.TestStep{
{ {
Config: testAccFolderOrganizationPolicy_list_allowSome(org, folder, project), Config: testAccFolderOrganizationPolicy_list_allowSome(org, folder, project),
Check: testAccCheckGoogleFolderOrganizationListPolicyAllowedValues("list", []string{project}), Check: testAccCheckGoogleFolderOrganizationListPolicyAllowedValues("list", []string{"projects/" + project}),
}, },
}, },
}) })
@ -293,7 +293,7 @@ resource "google_folder_organization_policy" "list" {
list_policy { list_policy {
allow { allow {
values = ["%s"] values = ["projects/%s"]
} }
} }
} }

View File

@ -90,7 +90,7 @@ func TestAccOrganizationPolicy_list_allowSome(t *testing.T) {
Steps: []resource.TestStep{ Steps: []resource.TestStep{
{ {
Config: testAccOrganizationPolicy_list_allowSome(org, project), Config: testAccOrganizationPolicy_list_allowSome(org, project),
Check: testAccCheckGoogleOrganizationListPolicyAllowedValues("list", []string{project}), Check: testAccCheckGoogleOrganizationListPolicyAllowedValues("list", []string{"projects/" + project}),
}, },
{ {
ResourceName: "google_organization_policy.list", ResourceName: "google_organization_policy.list",
@ -293,7 +293,7 @@ resource "google_organization_policy" "list" {
list_policy { list_policy {
allow { allow {
values = [ values = [
"%s", "projects/%s",
] ]
} }
} }