-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add resources azurerm_virtual_network_gateway and azurerm_virtual_network_gateway_connection #133
Merged
tombuildsstuff
merged 29 commits into
hashicorp:master
from
dominik-lekse:feature/virtual-network-gateway
Jan 26, 2018
Merged
Changes from 20 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
1f79d31
Add resources azurerm_virtual_network_gateway and azurerm_virtual_net…
dominik-lekse 2087dd7
Adapt resources azurerm_virtual_network_gateway and azurerm_virtual_n…
dominik-lekse a236467
Applied review feedback to azurerm_virtual_network_gateway and azurer…
dominik-lekse ee0bbe1
Add support for latest skus in azurerm_virtual_network_gateway
dominik-lekse b89586f
Fixed validation of skus in azurerm_virtual_network_gateway
dominik-lekse 2990404
Merge branch 'master' into feature/virtual-network-gateway
dominik-lekse c6ec4bc
Revised resources azurerm_virtual_network_gateway and azurerm_virtual…
dominik-lekse 554046a
Fixed import tests TestAccAzureRMVirtualNetworkGateway_importBasic an…
dominik-lekse b4143ba
Merge branch 'master' into feature/virtual-network-gateway
dominik-lekse b06dd57
Fixed description of field authorization_key in documentation of reso…
dominik-lekse f07a31c
virtual_network_gateway_connection: Removed reading parameters which …
dominik-lekse 0325c74
virtual_network_gateway: Removed comments on subnet deletion workaround
dominik-lekse 1686272
Revised test for resources virtual_network_gateway and virtual_networ…
dominik-lekse ed51416
Merge branch 'master' into feature/virtual-network-gateway
dominik-lekse 9739bc1
Merge branch 'master' into feature/virtual-network-gateway
dominik-lekse f95bf5d
azurer_virtual_network_gateway: Ignore case for subnet_id
dominik-lekse 26b1d69
Merge branch 'master' into feature/virtual-network-gateway
dominik-lekse 4baf7e5
Migrated resources virtual_network_gateway and virtual_network_gatewa…
dominik-lekse d724fd7
Migrated acceptance tests for resources virtual_network_gateway and v…
dominik-lekse 8fcfc41
Merge branch 'master' into feature/virtual-network-gateway
dominik-lekse 51614e0
Minor refactoring
tombuildsstuff d94db0f
Making the `vpn_client_configuration` a list
tombuildsstuff 1b6ddaa
Crash protection for importing legacy resources
tombuildsstuff 81a63b6
Refactoring to make `bgp_settings` a List
tombuildsstuff 6b2f496
Fixing minor linting issues
tombuildsstuff 19eb152
Working around a golint bug in the VNG acctests
tombuildsstuff f82fdd1
Adding validation to match the Azure Portal
tombuildsstuff 66e4602
Adding a test covering updating the shared key
tombuildsstuff 5046f19
Consistency in the documentation for VNG's/VNG Connections
tombuildsstuff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
azurerm/import_arm_virtual_network_gateway_connection_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package azurerm | ||
|
||
import ( | ||
"github.com/hashicorp/terraform/helper/acctest" | ||
"github.com/hashicorp/terraform/helper/resource" | ||
"testing" | ||
) | ||
|
||
func TestAccAzureRMVirtualNetworkGatewayConnection_importSiteToSite(t *testing.T) { | ||
resourceName := "azurerm_virtual_network_gateway_connection.test" | ||
|
||
ri := acctest.RandInt() | ||
config := testAccAzureRMVirtualNetworkGatewayConnection_sitetosite(ri, testLocation()) | ||
|
||
resource.Test(t, resource.TestCase{ | ||
PreCheck: func() { testAccPreCheck(t) }, | ||
Providers: testAccProviders, | ||
CheckDestroy: testCheckAzureRMVirtualNetworkGatewayConnectionDestroy, | ||
Steps: []resource.TestStep{ | ||
{ | ||
Config: config, | ||
}, | ||
|
||
{ | ||
ResourceName: resourceName, | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
}, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package azurerm | ||
|
||
import ( | ||
"github.com/hashicorp/terraform/helper/acctest" | ||
"github.com/hashicorp/terraform/helper/resource" | ||
"testing" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor could we sort the imports here? |
||
) | ||
|
||
func TestAccAzureRMVirtualNetworkGateway_importBasic(t *testing.T) { | ||
resourceName := "azurerm_virtual_network_gateway.test" | ||
|
||
ri := acctest.RandInt() | ||
config := testAccAzureRMVirtualNetworkGateway_basic(ri, testLocation()) | ||
|
||
resource.Test(t, resource.TestCase{ | ||
PreCheck: func() { testAccPreCheck(t) }, | ||
Providers: testAccProviders, | ||
CheckDestroy: testCheckAzureRMVirtualNetworkGatewayDestroy, | ||
Steps: []resource.TestStep{ | ||
{ | ||
Config: config, | ||
}, | ||
|
||
{ | ||
ResourceName: resourceName, | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
}, | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor could we sort the imports here?