fix: specifying sub network is no longer allowed (#83)

* fix: specifying sub network is no longer allowed

Signed-off-by: matttrach <matt.trachier@suse.com>

* fix: use test script in automation

Signed-off-by: matttrach <matt.trachier@suse.com>

---------

Signed-off-by: matttrach <matt.trachier@suse.com>
This commit is contained in:
Matt Trachier 2024-06-21 01:26:57 -05:00 committed by GitHub
parent 71ceb486c5
commit c33d71ee10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 30 deletions

View File

@ -73,9 +73,7 @@ jobs:
ZONE: ${{secrets.ZONE}}
run: |
go version
cd ${{github.workspace}}/tests
go test -v -timeout=60m -parallel=10
cd ${{github.workspace}}
./run_tests.sh
- uses: peter-evans/create-or-update-comment@v4
name: 'Report Success'
if: steps.release-please.outputs.pr

View File

@ -1,27 +0,0 @@
package test
import (
"os"
"testing"
"github.com/gruntwork-io/terratest/modules/random"
"github.com/gruntwork-io/terratest/modules/terraform"
)
func TestSubnet(t *testing.T) {
t.Parallel()
uniqueID := os.Getenv("IDENTIFIER")
if uniqueID == "" {
uniqueID = random.UniqueId()
}
directory := "subnets"
region := "us-west-2" // This regoin has at least 3 availability zones
terraformVars := map[string]interface{}{
"identifier": uniqueID,
}
terraformOptions := setup(t, directory, region, terraformVars)
defer teardown(t, directory)
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
}