Project

General

Profile

Actions

Bug #24910

closed

Feature registration does not reliably work in seed tests

Added by Marek Hulán almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

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


Related issues 1 (0 open1 closed)

Related to Foreman Remote Execution - Bug #24698: database "test_plugin_matrix-3-dev" does not exist when using `RemoteExecutionFeature.register` with Rails 5.2ClosedIvan NecasActions
Actions

Also available in: Atom PDF