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 #15934

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 <magic-modules@google.com>
@modular-magician modular-magician merged commit b4fdcc0 into hashicorp:FEATURE-BRANCH-major-release-5.0.0 Sep 21, 2023
3 checks passed
@github-actions
Copy link

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 issues.
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 Oct 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant