File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
internal/services/container Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ import (
1414 "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/registry"
1515)
1616
17+ const namespaceResourceType = "scaleway_container_namespace"
18+
1719func TestAccNamespace_Basic (t * testing.T ) {
1820 tt := acctest .NewTestTools (t )
1921 defer tt .Cleanup ()
@@ -343,7 +345,7 @@ func isNamespaceDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
343345func isRegistryDestroyed (tt * acctest.TestTools ) resource.TestCheckFunc {
344346 return func (state * terraform.State ) error {
345347 for _ , rs := range state .RootModule ().Resources {
346- if rs .Type != "scaleway_container_namespace" {
348+ if rs .Type != namespaceResourceType {
347349 continue
348350 }
349351
You can’t perform that action at this time.
0 commit comments