Skip to content

azurerm_virtual_hub_connection - adding property static_vnet_propagate_static_routes#28560

Merged
stephybun merged 15 commits intohashicorp:mainfrom
aeimer:feat/28556-propagate-static-routes
Mar 27, 2025
Merged

azurerm_virtual_hub_connection - adding property static_vnet_propagate_static_routes#28560
stephybun merged 15 commits intohashicorp:mainfrom
aeimer:feat/28556-propagate-static-routes

Conversation

@aeimer
Copy link
Contributor

@aeimer aeimer commented Jan 21, 2025

Community Note

  • Please vote on this PR by adding a 👍 reaction to the original PR to help the community and maintainers prioritize for review
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for PR followers and do not help prioritize for review

Description

This is my try to add PropagateStaticRoutes to azurerm_virtual_hub_connection.

closes #28556

PR Checklist

  • I have followed the guidelines in our Contributing Documentation.
  • I have checked to ensure there aren't other open Pull Requests for the same update/change.
  • I have checked if my changes close any open issues. If so please include appropriate closing keywords below.
  • I have updated/added Documentation as required written in a helpful and kind way to assist users that may be unfamiliar with the resource / data source.
  • I have used a meaningful PR title to help maintainers and other users understand this change and help prevent duplicate work.
    For example: “resource_name_here - description of change e.g. adding property new_property_name_here

Changes to existing Resource / Data Source

  • I have added an explanation of what my changes do and why I'd like you to include them (This may be covered by linking to an issue above, but may benefit from additional explanation).
  • I have written new tests for my resource or datasource changes & updated any relevent documentation.
  • I have successfully run tests with my changes locally. If not, please provide details on testing challenges that prevented you running the tests.

I can't test it locally, as I have no Azure subscription to deploy it to.

I was able to run make pr-check locally without errors.

Testing

  • My submission includes Test coverage as described in the Contribution Guide and the tests pass. (if this is not possible for any reason, please include details of why you did or could not add test coverage)
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/network -run=TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes -timeout 60m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== PAUSE TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== CONT  TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
--- PASS: TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes (2617.72s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/network	2620.254s

Screenshot 2025-02-04 at 18 41 12

Change Log

Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.

This is a (please select all that apply):

  • Bug Fix
  • New Feature (ie adding a service, resource, or data source)
  • Enhancement
  • Breaking Change

Related Issue(s)

Fixes #28556

Note

If this PR changes meaningfully during the course of review please update the title and description as required.

@aeimer aeimer force-pushed the feat/28556-propagate-static-routes branch from 15b2d1c to 974c796 Compare February 18, 2025 13:38
@github-actions github-actions bot added size/M and removed size/S labels Feb 18, 2025
@aeimer aeimer force-pushed the feat/28556-propagate-static-routes branch from 5efd33f to 06444e0 Compare February 20, 2025 12:18
@aeimer
Copy link
Contributor Author

aeimer commented Feb 20, 2025

I just re-ran the acceptance tests on the commit cd02b38.
The test was successful.

==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/network -run=TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes -timeout 60m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== PAUSE TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== CONT  TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
--- PASS: TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes (2677.00s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/network	2679.478s

@aeimer aeimer requested a review from stephybun March 7, 2025 08:21
@aeimer aeimer force-pushed the feat/28556-propagate-static-routes branch from cd02b38 to 303e34e Compare March 7, 2025 09:18
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aeimer, a few things need to be fixed up, but once that's done I can run the tests and see if this ready to be merged.

@aeimer aeimer force-pushed the feat/28556-propagate-static-routes branch from 303e34e to dad3bce Compare March 26, 2025 13:48
@aeimer
Copy link
Contributor Author

aeimer commented Mar 26, 2025

Re-ran tests on b61f36a.
Test was successful.

>>>> Starting tests
2025-03-26T14:02:18Z
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/network -run=TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes -timeout 90m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== PAUSE TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== CONT  TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
--- PASS: TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes (2479.68s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/network	2482.112s

real	43m55.001s
user	10m41.101s
sys	2m18.043s
>>>> Tests completed

@aeimer aeimer requested a review from stephybun March 26, 2025 14:47
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ImportStep went missing in the last update, once that's added this should be good to go

@aeimer
Copy link
Contributor Author

aeimer commented Mar 27, 2025

Re-ran tests on e245e41.
Test was successful.

>>>> Starting tests
2025-03-27T10:05:47Z
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/network -run=TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes -timeout 90m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== PAUSE TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
=== CONT  TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes
--- PASS: TestAccVirtualHubConnection_routeMapAndStaticVnetPropagateStaticRoutes (2778.28s)
PASS
ok  	github.com/hashicorp/terraform-provider-azurerm/internal/services/network	2780.773s

@aeimer aeimer force-pushed the feat/28556-propagate-static-routes branch from e245e41 to 80b5f58 Compare March 27, 2025 10:56
@aeimer aeimer requested a review from stephybun March 27, 2025 10:57
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aeimer LGTM 👍

@stephybun stephybun merged commit d4b23f1 into hashicorp:main Mar 27, 2025
33 checks passed
@github-actions github-actions bot added this to the v4.25.0 milestone Mar 27, 2025
stephybun added a commit that referenced this pull request Mar 27, 2025
@aeimer aeimer deleted the feat/28556-propagate-static-routes branch March 27, 2025 12:26
jackofallops added a commit that referenced this pull request Mar 28, 2025
* CHANGELOG.md for v4.25.0

* Update CHANGELOG.md #29126

* Update CHANGELOG.md #28647

* Update CHANGELOG.md #29153

* Update CHANGELOG.md #29131

* Update CHANGELOG.md #29090

* Update CHANGELOG.md #29137

* Update for #28781

* Update for #29158

* Update for #29073

* Update for #28149

* Update for #28730

* Update for #29157

* Update for #29135

* Update for #29184

* Update for #29093

* Update for #29071

* Update for #28371

* Update for #28560

* Update CHANGELOG.md #29199

* Update CHANGELOG.md for #29206

* prep for release

* Update CHANGELOG.md

---------

Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com>
Co-authored-by: stephybun <steph@hashicorp.com>
Co-authored-by: jackofallops <11830746+jackofallops@users.noreply.github.com>
Co-authored-by: jackofallops <ste@hashicorp.com>
@github-actions
Copy link
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for setting propagateStaticRoutes in azurerm_virtual_hub_connection

2 participants