Skip to content

Fix failed tests related to google_service_networking_connection#540

Merged
modular-magician merged 1 commit into
terraform-google-modules:FEATURE-BRANCH-major-release-5.0.0from
modular-magician:downstream-pr-a98d8fba163e0c1f4ffd020465139aafe8d89f15
Sep 21, 2023
Merged

Fix failed tests related to google_service_networking_connection#540
modular-magician merged 1 commit into
terraform-google-modules:FEATURE-BRANCH-major-release-5.0.0from
modular-magician:downstream-pr-a98d8fba163e0c1f4ffd020465139aafe8d89f15

Conversation

@modular-magician

Copy link
Copy Markdown
Collaborator

The previous PR GoogleCloudPlatform/magic-modules#8872 caused some nightly tests failed.

  1. To delete the google_service_networking_connection resource, call the method deleteConnection. If it fails, return the error and the deletion fails. Based on the test results, only sql instance has a waiting period to delete the connection.
  2. Use bootstrapped service networking connection for handwritten tests.
  3. For mm1 generated tests, create a new service networking connection, which can be deleted with deleteConnection. The reason to not use bootstrapped service networking connection is to not modify the examples in the doc.

5.0 guide is in GoogleCloudPlatform/magic-modules#9009

Release Note Template for Downstream PRs (will be copied)

servicenetworking: used the `deleteConnection` method to delete the resource `google_service_networking_connection`

Derived from GoogleCloudPlatform/magic-modules#8904

* Bootstrap service networking connection

* Revert tests

* Rename network names

* Modify tests

* Fix tests

* Catch the error when deleteConnection fails

* Fix test TestAccVertexAIIndexEndpoint_updated

* Fix test TestAccAlloydbInstance_createInstanceWithNetworkConfigAndAllocatedIPRange

* Fix test

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit b3c449f into terraform-google-modules:FEATURE-BRANCH-major-release-5.0.0 Sep 21, 2023
@modular-magician modular-magician deleted the downstream-pr-a98d8fba163e0c1f4ffd020465139aafe8d89f15 branch November 18, 2024 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant