diff --git a/ionoscloud/import_dbaas_redisdb_replica_set_test.go b/ionoscloud/import_dbaas_redisdb_replica_set_test.go new file mode 100644 index 000000000..3acb3a730 --- /dev/null +++ b/ionoscloud/import_dbaas_redisdb_replica_set_test.go @@ -0,0 +1,32 @@ +//go:build all || dbaas || redis +// +build all dbaas redis + +package ionoscloud + +import ( + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/ionos-cloud/terraform-provider-ionoscloud/v6/utils/constant" + "testing" +) + +func TestAccDBaaSRedisDBReplicaSetImportBasic(t *testing.T) { + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + ExternalProviders: randomProviderVersion343(), + ProviderFactories: testAccProviderFactories, + CheckDestroy: testAccCheckDBaaSRedisDBReplicaSetDestroyCheck, + Steps: []resource.TestStep{ + { + Config: redisDBReplicaSetConfigHashedPassword, + }, + { + ResourceName: constant.DBaaSRedisDBReplicaSetResource + "." + constant.DBaaSReplicaSetTestResource, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"credentials"}, + }, + }, + }) +} diff --git a/ionoscloud/resource_dbaas_redisdb_replicaset_test.go b/ionoscloud/resource_dbaas_redisdb_replicaset_test.go index ffa3c1c70..c7654674e 100644 --- a/ionoscloud/resource_dbaas_redisdb_replicaset_test.go +++ b/ionoscloud/resource_dbaas_redisdb_replicaset_test.go @@ -1,3 +1,6 @@ +//go:build all || dbaas || redis +// +build all dbaas redis + package ionoscloud import (