Skip to content

Commit

Permalink
ignore import field
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Nov 6, 2024
1 parent 37a511f commit 5ff7189
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions vault/resource_ssh_secret_backend_role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,14 @@ func TestAccSSHSecretBackendRole(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "allowed_user_key_config.1.lengths.0", "256"),
),
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
testutil.GetImportTestStep(resourceName, false, nil, "allow_empty_principals"),
}
}

resource.Test(t, resource.TestCase{
ProviderFactories: providerFactories,
PreCheck: func() {
testutil.TestAccPreCheck(t)
SkipIfAPIVersionLT(t, testProvider.Meta(), provider.VaultVersion117)
},
CheckDestroy: testAccSSHSecretBackendRoleCheckDestroy,
Steps: getSteps(""),
Expand Down Expand Up @@ -185,7 +180,7 @@ func TestAccSSHSecretBackendRole_template(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "default_user_template", "true"),
),
},
testutil.GetImportTestStep(resourceName, false, nil),
testutil.GetImportTestStep(resourceName, false, nil, "allow_empty_principals"),
},
})
}
Expand Down

0 comments on commit 5ff7189

Please sign in to comment.