Skip to content

Commit 66f2a61

Browse files
test cleanup
1 parent 8457a54 commit 66f2a61

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

internal/provider/data_source_hyok_customer_key_version_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
8-
"github.com/hashicorp/terraform-plugin-testing/echoprovider"
97
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
108
)
119

@@ -16,10 +14,8 @@ func TestAccTFEHYOKCustomerKeyVersionDataSource_basic(t *testing.T) {
1614
}
1715

1816
resource.Test(t, resource.TestCase{
19-
PreCheck: func() { testAccPreCheck(t) },
20-
ProtoV6ProviderFactories: map[string]func() (tfprotov6.ProviderServer, error){
21-
"echo": echoprovider.NewProviderServer(),
22-
},
17+
PreCheck: func() { testAccPreCheck(t) },
18+
ProtoV6ProviderFactories: testAccMuxedProviders,
2319
Steps: []resource.TestStep{
2420
{
2521
Config: testAccTFEHYOKCustomerKeyVersionDataSourceConfig(hyokCustomerKeyVersionId),

internal/provider/data_source_hyok_encrypted_data_key_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
8-
"github.com/hashicorp/terraform-plugin-testing/echoprovider"
97
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
108
)
119

@@ -16,10 +14,8 @@ func TestAccTFEHYOKEncryptedDataKeyDataSource_basic(t *testing.T) {
1614
}
1715

1816
resource.Test(t, resource.TestCase{
19-
PreCheck: func() { testAccPreCheck(t) },
20-
ProtoV6ProviderFactories: map[string]func() (tfprotov6.ProviderServer, error){
21-
"echo": echoprovider.NewProviderServer(),
22-
},
17+
PreCheck: func() { testAccPreCheck(t) },
18+
ProtoV6ProviderFactories: testAccMuxedProviders,
2319
Steps: []resource.TestStep{
2420
{
2521
Config: testAccTFEHYOKEncryptedDataKeyDataSourceConfig(hyokEncryptedDataKeyID),

0 commit comments

Comments
 (0)