terraform-aws-server/tests/os_test.go

80 lines
2.3 KiB
Go

package test
import (
"testing"
"github.com/gruntwork-io/terratest/modules/terraform"
)
func TestCis(t *testing.T) {
t.Parallel()
category := "os"
directory := "cis"
region := "us-west-1"
owner := "terraform-ci@suse.com"
terraformOptions, keyPair, sshAgent := setup(t, category, directory, region, owner)
defer teardown(t, category, directory, keyPair, sshAgent)
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
}
func TestSles15(t *testing.T) {
t.Parallel()
category := "os"
directory := "sles15"
region := "us-west-1"
owner := "terraform-ci@suse.com"
terraformOptions, keyPair, sshAgent := setup(t, category, directory, region, owner)
defer teardown(t, category, directory, keyPair, sshAgent)
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
}
func TestRocky8(t *testing.T) {
t.Parallel()
category := "os"
directory := "rocky8"
region := "us-west-1"
owner := "terraform-ci@suse.com"
terraformOptions, keyPair, sshAgent := setup(t, category, directory, region, owner)
defer teardown(t, category, directory, keyPair, sshAgent)
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
}
func TestRhel8(t *testing.T) {
t.Parallel()
category := "os"
directory := "rhel8"
region := "us-west-1"
owner := "terraform-ci@suse.com"
terraformOptions, keyPair, sshAgent := setup(t, category, directory, region, owner)
defer teardown(t, category, directory, keyPair, sshAgent)
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
}
func TestUbuntu20(t *testing.T) {
t.Parallel()
category := "os"
directory := "ubuntu20"
region := "us-west-1"
owner := "terraform-ci@suse.com"
terraformOptions, keyPair, sshAgent := setup(t, category, directory, region, owner)
defer teardown(t, category, directory, keyPair, sshAgent)
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
}
func TestUbuntu22(t *testing.T) {
t.Parallel()
category := "os"
directory := "ubuntu22"
region := "us-west-1"
owner := "terraform-ci@suse.com"
terraformOptions, keyPair, sshAgent := setup(t, category, directory, region, owner)
defer teardown(t, category, directory, keyPair, sshAgent)
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
}