package azurerm
import (
"fmt"
"testing"
"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccAzureRMSqlFirewallRule_importBasic(t *testing.T) {
resourceName := "azurerm_sql_firewall_rule.test"
ri := acctest.RandInt()
config := fmt.Sprintf(testAccAzureRMSqlFirewallRule_basic, ri, ri, ri)
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testCheckAzureRMSqlFirewallRuleDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: config,
},
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
})
}