Skip to content

Commit

Permalink
remove provider factory from test step
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Dec 14, 2023
1 parent c468db0 commit 1c89cc2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/vault/sys/password_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ func TestAccPasswordPolicy(t *testing.T) {
ProtoV5ProviderFactories: providertest.ProtoV5ProviderFactories,
Steps: []resource.TestStep{
{
ProtoV5ProviderFactories: providertest.ProtoV5ProviderFactories,
Config: testAccPasswordPolicyConfig(policyName, "length = 20\nrule \"charset\" {\n charset = \"abcde\"\n}\n"),
Config: testAccPasswordPolicyConfig(policyName, "length = 20\nrule \"charset\" {\n charset = \"abcde\"\n}\n"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(resourceName, "name", policyName),
resource.TestCheckResourceAttrSet(resourceName, "policy"),
),
},
{
ProtoV5ProviderFactories: providertest.ProtoV5ProviderFactories,
Config: testAccPasswordPolicyConfig(policyName, "length = 20\nrule \"charset\" {\n charset = \"abcde\"\n}\nrule \"charset\" {\n charset = \"1234567890\"\nmin-chars = 1\n}\n"),
Config: testAccPasswordPolicyConfig(policyName, "length = 20\nrule \"charset\" {\n charset = \"abcde\"\n}\nrule \"charset\" {\n charset = \"1234567890\"\nmin-chars = 1\n}\n"),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(resourceName, "name", policyName),
resource.TestCheckResourceAttrSet(resourceName, "policy"),
Expand Down

0 comments on commit 1c89cc2

Please sign in to comment.