From bc56de788063b6a9e5c21d7d906948a4ce3d2fa4 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 2 Mar 2018 17:35:48 +0000 Subject: [PATCH] Fix failing test --- kubernetes/resource_kubernetes_persistent_volume_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kubernetes/resource_kubernetes_persistent_volume_test.go b/kubernetes/resource_kubernetes_persistent_volume_test.go index b812e91e87..6624072b99 100644 --- a/kubernetes/resource_kubernetes_persistent_volume_test.go +++ b/kubernetes/resource_kubernetes_persistent_volume_test.go @@ -216,7 +216,6 @@ func TestAccKubernetesPersistentVolume_googleCloud_volumeSource(t *testing.T) { name := fmt.Sprintf("tf-acc-test-%s", randString) diskName := fmt.Sprintf("tf-acc-test-disk-%s", randString) - region := os.Getenv("GOOGLE_REGION") zone := os.Getenv("GOOGLE_ZONE") resource.Test(t, resource.TestCase{ @@ -253,10 +252,7 @@ func TestAccKubernetesPersistentVolume_googleCloud_volumeSource(t *testing.T) { resource.TestCheckResourceAttr("kubernetes_persistent_volume.test", "metadata.0.annotations.%", "0"), testAccCheckMetaAnnotations(&conf.ObjectMeta, map[string]string{}), resource.TestCheckResourceAttr("kubernetes_persistent_volume.test", "metadata.0.labels.%", "0"), - testAccCheckMetaLabels(&conf.ObjectMeta, map[string]string{ - "failure-domain.beta.kubernetes.io/region": region, - "failure-domain.beta.kubernetes.io/zone": zone, - }), + testAccCheckMetaLabels(&conf.ObjectMeta, map[string]string{}), resource.TestCheckResourceAttr("kubernetes_persistent_volume.test", "metadata.0.name", name), resource.TestCheckResourceAttrSet("kubernetes_persistent_volume.test", "metadata.0.generation"), resource.TestCheckResourceAttrSet("kubernetes_persistent_volume.test", "metadata.0.resource_version"),