Refactor #31016
Plugin testing leaves mess in registries
Pull request:
Fixed in Releases:
Found in Releases:
Description
Durign plugin testing (test/unit/plugin_test.rb) we refresh the plugin set, but we keep the same registries.
We need to refresh the registries as well, otherwise those are being filled with mocks and other garbage, that should not really be there.
Associated revisions
History
#1
Updated by The Foreman Bot 4 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8055 added
#2
Updated by The Foreman Bot 3 months ago
- Fixed in Releases 2.3.0 added
#3
Updated by Ondřej Ezr 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|3f46c0d359f2f4462b1f3853e564d58fccdf70b4.
Fixes #31016 - refresh registries after plugin testing (#8055)
Fixes #31016 - refresh registries after plugin testing
Introduce mechanisms to refresh the plugin registries.
We pollute these during plugin mechanisms testing and it never gets cleaned up.
This makes sure we clean mocks and stubs from the registries.