Actions
Bug #13355
closedfacet_test table missing causes test failures in plugins
Updated by Dominic Cleal about 9 years ago
- Category set to Tests
Can you please provide any more information?
Updated by Tom Caspy about 9 years ago
Updated by Dominic Cleal about 9 years ago
- Related to Feature #13216: Add API extensions for facets added
Updated by Dominic Cleal about 9 years ago
- Translation missing: en.field_release set to 71
10:54:29 FacetTest::namespaced facets#test_0001_can create a namespaced facet = 0.01 s = E 10:54:29 FacetTest::namespaced facets#test_0002_returns facets attributes = 0.01 s = E 10:54:29 FacetTest::managed host behavior#test_0001_registered facets are subscribed properly = 0.01 s = E 10:54:29 FacetTest::managed host behavior#test_0002_facets are cloned to the new host = 0.01 s = E 10:54:29 FacetTest::managed host behavior#test_0003_facets are included in attributes = 0.01 s = E 11:04:12 1) Error: 11:04:12 FacetTest::namespaced facets#test_0001_can create a namespaced facet: 11:04:12 ActiveRecord::StatementInvalid: Mysql2::Error: Table 'test_plugin_matrix-3-test.module_test_facets' doesn't exist: SHOW FULL FIELDS FROM `module_test_facets` 11:04:12 test/unit/facet_test.rb:29:in `block (2 levels) in <class:FacetTest>' 11:04:12 11:04:12 11:04:12 2) Error: 11:04:12 FacetTest::namespaced facets#test_0002_returns facets attributes: 11:04:12 ActiveRecord::StatementInvalid: Mysql2::Error: Table 'test_plugin_matrix-3-test.module_test_facets' doesn't exist: SHOW FULL FIELDS FROM `module_test_facets` 11:04:12 test/unit/facet_test.rb:29:in `block (2 levels) in <class:FacetTest>' 11:04:12 11:04:12 11:04:12 3) Error: 11:04:12 FacetTest::managed host behavior#test_0001_registered facets are subscribed properly: 11:04:12 ActiveRecord::StatementInvalid: Mysql2::Error: Table 'test_plugin_matrix-3-test.test_facets' doesn't exist: SHOW FULL FIELDS FROM `test_facets` 11:04:12 test/unit/facet_test.rb:48:in `block (2 levels) in <class:FacetTest>' 11:04:12 11:04:12 11:04:12 4) Error: 11:04:12 FacetTest::managed host behavior#test_0002_facets are cloned to the new host: 11:04:12 ActiveRecord::StatementInvalid: Mysql2::Error: Table 'test_plugin_matrix-3-test.test_facets' doesn't exist: SHOW FULL FIELDS FROM `test_facets` 11:04:12 test/unit/facet_test.rb:48:in `block (2 levels) in <class:FacetTest>' 11:04:12 11:04:12 11:04:12 5) Error: 11:04:12 FacetTest::managed host behavior#test_0003_facets are included in attributes: 11:04:12 ActiveRecord::StatementInvalid: Mysql2::Error: Table 'test_plugin_matrix-3-test.test_facets' doesn't exist: SHOW FULL FIELDS FROM `test_facets` 11:04:12 test/unit/facet_test.rb:48:in `block (2 levels) in <class:FacetTest>' 11:04:12 11:04:12 3359 runs, 7785 assertions, 0 failures, 5 errors, 0 skips
Updated by The Foreman Bot about 9 years ago
- Status changed from New to Ready For Testing
- Assignee set to Tom Caspy
- Pull request https://github.com/theforeman/foreman/pull/3118 added
Updated by Tom Caspy about 9 years ago
the issue is caused because the code which creates the tables is evaluated in the middle of test runs, after Sport.prefork block has run. moving the require into the test helper allows the code to run. this issue should be 100% reproducible in the CI, and on dev machines will happen with a new test database.
Updated by Tom Caspy about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 7e670d3fba25be808a11a9e40f54a0f5f8e7926e.
Actions