Update test names.

This commit is contained in:
Paddy 2017-05-10 15:12:14 -07:00
parent 1709ea4414
commit 9078efc478
1 changed files with 5 additions and 5 deletions

View File

@ -10,22 +10,22 @@ import (
"github.com/hashicorp/terraform/terraform"
)
func TestAccGoogleContainerVersions_basic(t *testing.T) {
func TestAccGoogleContainerEngineVersions_basic(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testAccCheckGoogleContainerVersionsConfig,
Config: testAccCheckGoogleContainerEngineVersionsConfig,
Check: resource.ComposeTestCheckFunc(
testAccCheckGoogleContainerVersionsMeta("data.google_container_engine_versions.versions"),
testAccCheckGoogleContainerEngineVersionsMeta("data.google_container_engine_versions.versions"),
),
},
},
})
}
func testAccCheckGoogleContainerVersionsMeta(n string) resource.TestCheckFunc {
func testAccCheckGoogleContainerEngineVersionsMeta(n string) resource.TestCheckFunc {
return func(s *terraform.State) error {
rs, ok := s.RootModule().Resources[n]
if !ok {
@ -90,7 +90,7 @@ func testAccCheckGoogleContainerVersionsMeta(n string) resource.TestCheckFunc {
}
}
var testAccCheckGoogleContainerVersionsConfig = `
var testAccCheckGoogleContainerEngineVersionsConfig = `
data "google_container_engine_versions" "versions" {
zone = "us-central1-b"
}