Skip to content

Commit

Permalink
create test for inline policy
Browse files Browse the repository at this point in the history
  • Loading branch information
novekm committed Jun 7, 2024
1 parent a2d8ff2 commit 081377a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/inline_policy_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package test

import (
"testing"

"github.com/gruntwork-io/terratest/modules/terraform"
)

func TestAWSandInlinePolicies(t *testing.T) {

terraformOptions := &terraform.Options{
// The path to where your Terraform code is located
TerraformDir: "../examples/inline-policy",

}

// At the end of the test, run 'terraform destroy' to clean up any resources that were created
defer terraform.Destroy(t, terraformOptions)

// Run 'terraform init' and 'terraform apply'. Fail the test if there are any errors.
terraform.InitAndApply(t, terraformOptions)

}

0 comments on commit 081377a

Please sign in to comment.