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:
parent
71ceb486c5
commit
c33d71ee10
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
Loading…
Reference in New Issue