Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastus committed Oct 23, 2017
2 parents 927f173 + 871e728 commit 4da5d26
Show file tree
Hide file tree
Showing 14 changed files with 4,135 additions and 8 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
## 0.3.1 (Unreleased)
## 0.3.2 (Unreleased)

FEATURES:

* **New Resource:** `azurerm_application_gateway` [GH-413]

## 0.3.1 (October 21, 2017)

IMPROVEMENTS:

- `azurerm_virtual_machine_scale_set` - Updating this resource with the v11 of the Azure SDK for Go ([#448](https://github.com/terraform-providers/terraform-provider-azurerm/issues/448))

## 0.3.0 (October 17, 2017)

UPGRADE NOTES:
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test: fmtcheck
xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4

testacc: fmtcheck
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 120m
TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 180m

vet:
@echo "go vet ."
Expand Down
4 changes: 2 additions & 2 deletions azurerm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type ArmClient struct {
automationCredentialClient automation.CredentialClient
automationScheduleClient automation.ScheduleClient

appGatewayClient network.ApplicationGatewaysClient
applicationGatewayClient network.ApplicationGatewaysClient
ifaceClient network.InterfacesClient
expressRouteCircuitClient network.ExpressRouteCircuitsClient
loadBalancerClient network.LoadBalancersClient
Expand Down Expand Up @@ -329,7 +329,7 @@ func (c *Config) getArmClient() (*ArmClient, error) {
setUserAgent(&agc.Client)
agc.Authorizer = auth
agc.Sender = sender
client.appGatewayClient = agc
client.applicationGatewayClient = agc

crc := containerregistry.NewRegistriesClientWithBaseURI(endpoint, c.SubscriptionID)
setUserAgent(&crc.Client)
Expand Down
31 changes: 31 additions & 0 deletions azurerm/import_arm_application_gateway_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package azurerm

import (
"testing"

"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
)

func TestAzureRMApplicationGateway_importBasic(t *testing.T) {
resourceName := "azurerm_application_gateway.test"

ri := acctest.RandInt()
config := testAccAzureRMApplicationGateway_basic(ri)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testCheckAzureRMApplicationGatewayDestroy,
Steps: []resource.TestStep{
{
Config: config,
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}
1 change: 1 addition & 0 deletions azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func Provider() terraform.ResourceProvider {
},

ResourcesMap: map[string]*schema.Resource{
"azurerm_application_gateway": resourceArmApplicationGateway(),
"azurerm_application_insights": resourceArmApplicationInsights(),
"azurerm_app_service": resourceArmAppService(),
"azurerm_app_service_plan": resourceArmAppServicePlan(),
Expand Down
Loading

0 comments on commit 4da5d26

Please sign in to comment.