Network - fix TestAccExpressRouteCircuitConnection, TestAccExpressRouteConnection, and TestAccVirtualNetworkGateway_*#31414
Conversation
…CircuitConnection` `azurerm_express_route_port` `peering_location`
gerrytan
left a comment
There was a problem hiding this comment.
Sorry for the delay in reviewing this @v-yhyeo0202 . However can you please merge latest main and check if someone else already fixed the problem mentioned.
For example I checked TestAccVPNServerConfigurationPolicyGroup_complete and it's been passing since around Jan
https://hashicorp.teamcity.com/test/-8157610531230417478?currentProjectId=TF_AzureRM
@gerrytan, no problem, seems that most of the issues related to non-refresh |
…essRouteConnection`
plan due to Sensitive propertiesTestAccExpressRouteCircuitConnection, TestAccExpressRouteConnection, and `TestAccVirtualNetworkGateway_*'
TestAccExpressRouteCircuitConnection, TestAccExpressRouteConnection, and `TestAccVirtualNetworkGateway_*'TestAccExpressRouteCircuitConnection, TestAccExpressRouteConnection, and TestAccVirtualNetworkGateway_*
|
Latest test results TestAccExpressRouteConnection fails due to intermittent context deadline exceeded error. The other failed tests are caused by intermittent errors or pre-existing in main branch test run. |


Community Note
Description
TestAccExpressRouteCircuitConnectionfails due to unavailability of bandwidth at currentpeering_locationofazurerm_express_route_portresource as shown in the error log below. Thepeering_locationis changed to the one with bandwidth. Another error affectingTestAccExpressRouteCircuitConnectionis caused by the updating of virtual hub by multipleazurerm_route_mapat the same time. To avoid the error, virtual hub lock is added toazurerm_route_map.The following network resource tests fail due to non-empty non-refresh
planas shown in the error log below. This happens as theSensitiveauthorization_keyproperty is not stored in Terraform state. To avoid the perpetual difference,authorization_keyis set with the value from Terraform configurations whenReadmethod is called.Error log
PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
(For changes that include a state migration only). I have manually tested the migration path between relevant versions of the provider.Testing
https://hashicorp.teamcity.com/buildConfiguration/TF_AzureRM_AZURERM_SERVICE_PUBLIC_NETWORK/630782?buildTab=overview

TestAccExpressRouteConnectionfails due to intermittentcontext deadline exceedederror. The other failed tests are caused by intermittent errors or pre-existing inmainbranch test run.Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_express_route_circuit_connection- fixTestAccExpressRouteCircuitConnectionazurerm_express_route_connection- fixTestAccExpressRouteConnectionazurerm_virtual_network_gateway- fixTestAccVirtualNetworkGateway_vpnClientConfigandTestAccVirtualNetworkGateway_vpnClientConfigMultipleAuthTypesazurerm_route_map- add virtual hub lockThis is a (please select all that apply):
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.