2021-09-14 13:11:28 +00:00
|
|
|
package google_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/cloudskiff/driftctl/test"
|
|
|
|
"github.com/cloudskiff/driftctl/test/acceptance"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestAcc_Google_ComputeFirewall(t *testing.T) {
|
|
|
|
acceptance.Run(t, acceptance.AccTestCase{
|
|
|
|
TerraformVersion: "0.15.5",
|
|
|
|
Paths: []string{"./testdata/acc/google_compute_firewall"},
|
|
|
|
Args: []string{
|
|
|
|
"scan",
|
|
|
|
"--to", "gcp+tf",
|
|
|
|
"--deep",
|
|
|
|
},
|
|
|
|
Checks: []acceptance.AccCheck{
|
|
|
|
{
|
|
|
|
Check: func(result *test.ScanResult, stdout string, err error) {
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
2021-10-05 08:20:31 +00:00
|
|
|
result.AssertInfrastructureIsInSync()
|
2021-09-14 13:11:28 +00:00
|
|
|
result.AssertManagedCount(3)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|