You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Supports cleaning resources for static projects with test-acc-tf-p-keep prefix (#3269)
* refactor: support empty prefix for projects that shouldn't be deleted but have resources removed
* refactor: Remove resources from projects with `test-acc-tf-p-keep` (only found a few stream-instances for now)
* Update internal/testutil/clean/org_clean_test.go
Co-authored-by: Leo Antoli <[email protected]>
* refactor: Use a bool for skipProjectDelete
* refactor: Rename projectsToDelete to projectsToClean for clarity in project resource management
---------
Co-authored-by: Leo Antoli <[email protected]>
t.Logf("SUMMARY\nProjects changed from %d to %d\ndelete_errors=%d\nDRY_RUN=%t", projectsBefore, len(projectsAfter), deleteErrors, dryRun)
142
+
projectsAfter:=readAllProjects(context.Background(), t, client) //nolint:usetesting // reason: using context.Background() here intentionally because t.Context() is canceled at cleanup
143
+
t.Logf("SUMMARY\nProjects changed from %d to %d\ndelete_errors=%d\nempty_project_count=%d\nDRY_RUN=%t", projectsBefore, len(projectsAfter), deleteErrors, emptyProjectCount, dryRun)
0 commit comments