Actions
Bug #24910
closedFeature registration does not reliably work in seed tests
Difficulty:
Triaged:
No
Description
After 5.2 upgrade introduced in #24698, problems appeared in foreman_ansible and foreman_openscap that extends seeding. Core seed tests fail since the registration fails, since we're part test invoke rake db:seed. The 5.2 change was that rake db:create loads rails env so the code gets executed too early when DB does not exist yet. We need proper detection method (table_exists?) in core, but meanwhile we agreed on workaround to rescue the exception. Ideally this should be released as 1.6.3
Actions