package test import ( "testing" "github.com/gruntwork-io/terratest/modules/ssh" "github.com/gruntwork-io/terratest/modules/terraform" ) func TestBasic(t *testing.T) { t.Parallel() category := "basic" directory := "basic" region := "us-west-1" owner := "terraform-ci@suse.com" terraformOptions, keyPair := setup(t, category, directory, region, owner) sshAgent := ssh.SshAgentWithKeyPair(t, keyPair.KeyPair) defer sshAgent.Stop() terraformOptions.SshAgent = sshAgent defer teardown(t, category, directory, keyPair, sshAgent) defer terraform.Destroy(t, terraformOptions) terraform.InitAndApply(t, terraformOptions) }