Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 committed Apr 5, 2023
1 parent 2d3eb3f commit b8d88c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/services/firewall/firewall_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ func TestAccFirewall_complete(t *testing.T) {
func TestAccFirewall_enableDNS(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_firewall", "test")
r := FirewallResource{}
fmt.Printf("%s", r.enableDNS(data, nil, "1.1.1.1", "8.8.8.8"))
t.Fatal()

data.ResourceTest(t, r, []acceptance.TestStep{
{
Expand Down Expand Up @@ -482,9 +480,9 @@ func (FirewallResource) enableDNS(data acceptance.TestData, enableProxy *bool, d
enableProxyStr := ""
if enableProxy != nil {
if *enableProxy {
enableProxyStr = "proxy_enabled = true"
enableProxyStr = "dns_proxy_enabled = true"
} else {
enableProxyStr = "proxy_enabled = false"
enableProxyStr = "dns_proxy_enabled = false"
}
}

Expand Down

0 comments on commit b8d88c3

Please sign in to comment.