Skip to content
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

Fix failed tests related to google_service_networking_connection #6332

Conversation

modular-magician
Copy link
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

…hicorp#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 <[email protected]>
@modular-magician modular-magician merged commit f436492 into hashicorp:FEATURE-BRANCH-major-release-5.0.0 Sep 21, 2023
3 checks passed
@modular-magician modular-magician deleted the downstream-pr-a98d8fba163e0c1f4ffd020465139aafe8d89f15 branch November 16, 2024 03:47
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