-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): update sweeper registration for Metal resources (#593)
When we migrated some resources to separate packages under `internal/resources`, the sweepers for the resources that were moved stopped running. This adds a new `internal/sweeper` package that sets up the sweepers for resources under `internal/resources`. In most cases, that change would be enough by itself, but the Metal sweepers have some interdependencies, and those interdependencies only work correctly if every relevant sweeper is registered within the same TestMain function. To resolve that, thi moves the test sweepers for Metal resources that are still in `equinix/` from the test file to the main resource file and adds an `equinix.AddTestSweepers` shim that allows the sweeper in `internal/sweep` to know about all Metal sweepers regardless of location.
- Loading branch information
Showing
23 changed files
with
543 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.