Skip to content

Commit

Permalink
fixup! migrate ssh key resource
Browse files Browse the repository at this point in the history
Signed-off-by: ocobleseqx <oscar.cobles@eu.equinix.com>
  • Loading branch information
ocobleseqx committed Jan 31, 2024
1 parent 40e1a1a commit 72326a1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internal/resources/metal/ssh_key/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ func TestAccMetalSSHKey_basic(t *testing.T) {
}

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acceptance.TestAccPreCheckMetal(t) },
Providers: acceptance.TestAccProviders,
CheckDestroy: testAccMetalSSHKeyCheckDestroyed,
PreCheck: func() { acceptance.TestAccPreCheckMetal(t) },
ProtoV5ProviderFactories: acceptance.ProtoV5ProviderFactories,
CheckDestroy: testAccMetalSSHKeyCheckDestroyed,
Steps: []resource.TestStep{
{
Config: testAccMetalSSHKeyConfig_basic(rInt, publicKeyMaterial),
Expand Down Expand Up @@ -113,9 +113,9 @@ func TestAccMetalSSHKey_update(t *testing.T) {
}

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acceptance.TestAccPreCheckMetal(t) },
Providers: acceptance.TestAccProviders,
CheckDestroy: testAccMetalSSHKeyCheckDestroyed,
PreCheck: func() { acceptance.TestAccPreCheckMetal(t) },
ProtoV5ProviderFactories: acceptance.ProtoV5ProviderFactories,
CheckDestroy: testAccMetalSSHKeyCheckDestroyed,
Steps: []resource.TestStep{
{
Config: testAccMetalSSHKeyConfig_basic(rInt, publicKeyMaterial),
Expand Down Expand Up @@ -169,9 +169,9 @@ func TestAccMetalSSHKey_importBasic(t *testing.T) {
t.Fatalf("Cannot generate test SSH key pair: %s", err)
}
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acceptance.TestAccPreCheckMetal(t) },
Providers: acceptance.TestAccProviders,
CheckDestroy: testAccMetalSSHKeyCheckDestroyed,
PreCheck: func() { acceptance.TestAccPreCheckMetal(t) },
ProtoV5ProviderFactories: acceptance.ProtoV5ProviderFactories,
CheckDestroy: testAccMetalSSHKeyCheckDestroyed,
Steps: []resource.TestStep{
{
Config: testAccMetalSSHKeyConfig_basic(acctest.RandInt(), sshKey),
Expand Down

0 comments on commit 72326a1

Please sign in to comment.