Skip to content

Commit c62c170

Browse files
committed
Adapt alreadyExists test to use generic delete helper.
1 parent eec0484 commit c62c170

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifest/test/acceptance/exists_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
//go:build acceptance
12
// +build acceptance
23

34
package acceptance
45

56
import (
67
"strings"
78
"testing"
9+
10+
"github.com/hashicorp/terraform-provider-kubernetes/manifest/test/helper/kubernetes"
811
)
912

1013
func TestKubernetesManifest_alreadyExists(t *testing.T) {
@@ -21,7 +24,7 @@ func TestKubernetesManifest_alreadyExists(t *testing.T) {
2124
}()
2225

2326
k8shelper.CreateNamespace(t, namespace)
24-
defer k8shelper.DeleteNamespace(t, namespace)
27+
defer k8shelper.DeleteResource(t, namespace, kubernetes.NewGroupVersionResource("v1", "namespaces"))
2528

2629
tfvars := TFVARS{
2730
"namespace": namespace,

0 commit comments

Comments
 (0)