Project

General

Profile

Refactor #31016

Plugin testing leaves mess in registries

Added by Ondřej Ezr 4 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
-
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
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

Revision 3f46c0d3 (diff)
Added by Ondřej Ezr 3 months ago

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.

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

Also available in: Atom PDF