Skip to content

Commit

Permalink
rename testAccAWSAuthBackendSTSRoleConfig_basic to more general testA…
Browse files Browse the repository at this point in the history
…ccAWSAuthBackendSTSRoleConfig
  • Loading branch information
helenfufu committed Nov 21, 2024
1 parent 894d67a commit 042024d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vault/resource_aws_auth_backend_sts_role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestAccAWSAuthBackendSTSRole_withExternalID(t *testing.T) {
CheckDestroy: testAccCheckAWSAuthBackendSTSRoleDestroy,
Steps: []resource.TestStep{
{
Config: testAccAWSAuthBackendSTSRoleConfig_basic(backend, accountID, arn, externalID),
Config: testAccAWSAuthBackendSTSRoleConfig(backend, accountID, arn, externalID),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(resourceName, "backend", backend),
resource.TestCheckResourceAttr(resourceName, "account_id", accountID),
Expand All @@ -45,7 +45,7 @@ func TestAccAWSAuthBackendSTSRole_withExternalID(t *testing.T) {
},
{
// Update external ID.
Config: testAccAWSAuthBackendSTSRoleConfig_basic(backend, accountID, arn, updatedExternalID),
Config: testAccAWSAuthBackendSTSRoleConfig(backend, accountID, arn, updatedExternalID),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(resourceName, "backend", backend),
resource.TestCheckResourceAttr(resourceName, "account_id", accountID),
Expand Down Expand Up @@ -73,12 +73,12 @@ func TestAccAWSAuthBackendSTSRole_basic(t *testing.T) {
CheckDestroy: testAccCheckAWSAuthBackendSTSRoleDestroy,
Steps: []resource.TestStep{
{
Config: testAccAWSAuthBackendSTSRoleConfig_basic(backend, accountID, arn, ""),
Config: testAccAWSAuthBackendSTSRoleConfig(backend, accountID, arn, ""),
Check: testAccAWSAuthBackendSTSRoleCheck_attrs(backend, accountID, arn),
},
{
// Update ARN.
Config: testAccAWSAuthBackendSTSRoleConfig_basic(backend, accountID, updatedArn, ""),
Config: testAccAWSAuthBackendSTSRoleConfig(backend, accountID, updatedArn, ""),
Check: testAccAWSAuthBackendSTSRoleCheck_attrs(backend, accountID, updatedArn),
},
{
Expand Down Expand Up @@ -159,7 +159,7 @@ func testAccAWSAuthBackendSTSRoleCheck_attrs(backend, accountID, stsRole string)
}
}

func testAccAWSAuthBackendSTSRoleConfig_basic(backend, accountID, stsRole, externalID string) string {
func testAccAWSAuthBackendSTSRoleConfig(backend, accountID, stsRole, externalID string) string {
backendResource := fmt.Sprintf(`
resource "vault_auth_backend" "aws" {
type = "aws"
Expand Down

0 comments on commit 042024d

Please sign in to comment.