2021-11-22 16:55:11 +00:00
|
|
|
package azurerm_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2021-12-06 13:29:39 +00:00
|
|
|
"github.com/snyk/driftctl/test"
|
|
|
|
"github.com/snyk/driftctl/test/acceptance"
|
2021-11-22 16:55:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestAcc_Azure_LoadBalancerRules(t *testing.T) {
|
|
|
|
acceptance.Run(t, acceptance.AccTestCase{
|
|
|
|
TerraformVersion: "0.15.5",
|
|
|
|
Paths: []string{"./testdata/acc/azurerm_lb_rule"},
|
|
|
|
Args: []string{
|
|
|
|
"scan",
|
|
|
|
"--to", "azure+tf",
|
|
|
|
},
|
|
|
|
Checks: []acceptance.AccCheck{
|
|
|
|
{
|
|
|
|
Check: func(result *test.ScanResult, stdout string, err error) {
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
result.AssertInfrastructureIsInSync()
|
2021-11-26 16:18:15 +00:00
|
|
|
result.AssertManagedCount(1)
|
2021-11-22 16:55:11 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|