Skip to content

Commit

Permalink
Updating based on 335b69ba
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Jan 17, 2023
1 parent 7d52b4b commit 49790f8
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import (
"github.com/hashicorp/go-azure-helpers/lang/response"
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema"
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
webtests "github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis"
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"

"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation"
"github.com/hashicorp/terraform-provider-azurerm/utils"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3412,69 +3412,69 @@ resource "azurerm_kubernetes_cluster" "test" {

func (KubernetesClusterResource) kubeProxy(data acceptance.TestData) string {
return fmt.Sprintf(`
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-aks-%d"
location = "%s"
}
resource "azurerm_kubernetes_cluster" "test" {
name = "acctestaks%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
dns_prefix = "acctestaks%d"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2s_v3"
}
identity {
type = "SystemAssigned"
}
network_profile {
network_plugin = "none"
kube_proxy {
mode = "IPVS"
ipvs {
scheduler = "LeastConnection"
tcp_fin_timeout_in_seconds = 1000
tcp_timeout_in_seconds = 1000
udp_timeout_in_seconds = 1000
}
}
}
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-aks-%d"
location = "%s"
}
resource "azurerm_kubernetes_cluster" "test" {
name = "acctestaks%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
dns_prefix = "acctestaks%d"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2s_v3"
}
identity {
type = "SystemAssigned"
}
network_profile {
network_plugin = "none"
kube_proxy {
mode = "IPVS"
ipvs {
scheduler = "LeastConnection"
tcp_fin_timeout_in_seconds = 1000
tcp_timeout_in_seconds = 1000
udp_timeout_in_seconds = 1000
}
}
}
}
`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger)
}

func (KubernetesClusterResource) kubeProxyDisabled(data acceptance.TestData) string {
return fmt.Sprintf(`
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-aks-%d"
location = "%s"
}
resource "azurerm_kubernetes_cluster" "test" {
name = "acctestaks%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
dns_prefix = "acctestaks%d"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2s_v3"
}
identity {
type = "SystemAssigned"
}
network_profile {
network_plugin = "none"
}
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-aks-%d"
location = "%s"
}
resource "azurerm_kubernetes_cluster" "test" {
name = "acctestaks%d"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
dns_prefix = "acctestaks%d"
default_node_pool {
name = "default"
node_count = 1
vm_size = "Standard_D2s_v3"
}
identity {
type = "SystemAssigned"
}
network_profile {
network_plugin = "none"
}
}
`, data.RandomInteger, data.Locations.Primary, data.RandomInteger, data.RandomInteger)
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func (d PrivateDNSResolverDnsForwardingRulesetDataSource) basic(data acceptance.
%s
data "azurerm_private_dns_resolver_dns_forwarding_ruleset" "test" {
name = azurerm_private_dns_resolver_dns_forwarding_ruleset.test.name
resource_group_name = azurerm_resource_group.test.name
name = azurerm_private_dns_resolver_dns_forwarding_ruleset.test.name
resource_group_name = azurerm_resource_group.test.name
}
`, PrivateDNSResolverDnsForwardingRulesetResource{}.basic(data))
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func (d PrivateDNSResolverForwardingRuleDataSource) basic(data acceptance.TestDa
%s
data "azurerm_private_dns_resolver_forwarding_rule" "test" {
name = azurerm_private_dns_resolver_forwarding_rule.test.name
dns_forwarding_ruleset_id = azurerm_private_dns_resolver_dns_forwarding_ruleset.test.id
name = azurerm_private_dns_resolver_forwarding_rule.test.name
dns_forwarding_ruleset_id = azurerm_private_dns_resolver_dns_forwarding_ruleset.test.id
}
`, PrivateDNSResolverForwardingRuleResource{}.basic(data))
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func (d DNSResolverInboundEndpointDataSource) basic(data acceptance.TestData) st
%s
data "azurerm_private_dns_resolver_inbound_endpoint" "test" {
name = azurerm_private_dns_resolver_inbound_endpoint.test.name
private_dns_resolver_id = azurerm_private_dns_resolver.test.id
name = azurerm_private_dns_resolver_inbound_endpoint.test.name
private_dns_resolver_id = azurerm_private_dns_resolver.test.id
}
`, DNSResolverInboundEndpointResource{}.basic(data))
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ func (d DNSResolverOutboundEndpointDataSource) basic(data acceptance.TestData) s
%s
data "azurerm_private_dns_resolver_outbound_endpoint" "test" {
name = azurerm_private_dns_resolver_outbound_endpoint.test.name
private_dns_resolver_id = azurerm_private_dns_resolver.test.id
name = azurerm_private_dns_resolver_outbound_endpoint.test.name
private_dns_resolver_id = azurerm_private_dns_resolver.test.id
}
`, DNSResolverOutboundEndpointResource{}.basic(data))
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (d PrivateDNSResolverVirtualNetworkLinkDataSource) basic(data acceptance.Te
%s
data "azurerm_private_dns_resolver_virtual_network_link" "test" {
name = azurerm_private_dns_resolver_virtual_network_link.test.name
name = azurerm_private_dns_resolver_virtual_network_link.test.name
dns_forwarding_ruleset_id = azurerm_private_dns_resolver_dns_forwarding_ruleset.test.id
}
`, PrivateDNSResolverVirtualNetworkLinkResource{}.basic(data))
Expand Down
16 changes: 8 additions & 8 deletions internal/services/synapse/synapse_sql_pool_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ provider "azurerm" {
%s
resource "azurerm_synapse_sql_pool" "test" {
name = "acctestSP%s"
synapse_workspace_id = azurerm_synapse_workspace.test.id
sku_name = "DW100c"
create_mode = "Default"
name = "acctestSP%s"
synapse_workspace_id = azurerm_synapse_workspace.test.id
sku_name = "DW100c"
create_mode = "Default"
geo_backup_policy_enabled = false
}
`, template, data.RandomString)
Expand All @@ -291,10 +291,10 @@ provider "azurerm" {
%s
resource "azurerm_synapse_sql_pool" "test" {
name = "acctestSP%s"
synapse_workspace_id = azurerm_synapse_workspace.test.id
sku_name = "DW100c"
create_mode = "Default"
name = "acctestSP%s"
synapse_workspace_id = azurerm_synapse_workspace.test.id
sku_name = "DW100c"
create_mode = "Default"
geo_backup_policy_enabled = true
}
`, template, data.RandomString)
Expand Down

0 comments on commit 49790f8

Please sign in to comment.