-
Notifications
You must be signed in to change notification settings - Fork 192
chore: Updates org_clean_test.go to delete stream instances & private endpoint services #3252
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
Conversation
@@ -127,15 +131,16 @@ func TestCleanProjectAndClusters(t *testing.T) { | |||
}) | |||
} | |||
t.Cleanup(func() { | |||
projectsAfter := readAllProjects(t.Context(), t, client) | |||
//nolint:usetesting // reason: using context.Background() here intentionally because t.Context() is canceled at cleanup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't there a way to avoid this linter exception?
@@ -40,6 +42,8 @@ var ( | |||
"CANNOT_CLOSE_GROUP_ACTIVE_PEERING_CONNECTIONS", | |||
"CANNOT_CLOSE_GROUP_ACTIVE_ATLAS_DATA_LAKES", | |||
"CANNOT_CLOSE_GROUP_ACTIVE_ATLAS_DATA_FEDERATION_PRIVATE_ENDPOINTS", | |||
"CANNOT_CLOSE_GROUP_ACTIVE_STREAMS_RESOURCE", | |||
"CANNOT_CLOSE_GROUP_ACTIVE_ATLAS_PRIVATE_ENDPOINT_SERVICES", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we maybe change the logic to detect if error has prefix CANNOT_CLOSE_GROUP_ACTIVE_ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to keep as is for now & see how this works for next few days & if we encounter other issues/errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
* master: chore: Updates org_clean_test.go to delete stream instances & private endpoint services (#3252) chore: Updates organization.md `skip_default_alerts_settings` note format (#3246) doc: Update guidelines for external contributors to squash commits (#3243) chore: Updates CHANGELOG.md for #3199
Description
Updates org_clean_test.go to delete stream instances & private endpoint services
Test runs:
https://github.com/mongodb/terraform-provider-mongodbatlas/actions/runs/14273965328/job/40013230931
https://github.com/mongodb/terraform-provider-mongodbatlas/actions/runs/14274317052/job/40014298440
Type of change:
Required Checklist:
Further comments