Project

General

Profile

Actions

Bug #13293

closed

Intermittent host#edit parameter integration test failures after timeout

Added by Dominic Cleal almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
Tests
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Further to #13111, some host#edit parameter integration tests are failing intermittently but after the Capybara timeout (#13111 fixed instances of the timeout not being used). These can be seen from the verbose test logs when it takes over 30 seconds.

1) Assertion failure when removing an overridden global parameter and checking the override button is added back.

HostIntegrationTest::edit page.test_0004_correctly override global params
test/integration/host_test.rb:461

Fails on the third line:

refute page.has_selector?('#inherited_parameters .btn[data-tag=override]')
page.find('#global_parameters_table a[data-original-title="Remove Parameter"]').click
assert page.has_selector?('#inherited_parameters .btn[data-tag=override]')

2) Assertion failure when overriding a global parameter and checking the override button is removed.

Failed assertion, no message given. (Minitest::Assertion)
/var/lib/workspace/workspace/test_develop_pr_core/database/postgresql/label/fast/ruby/1.9.3/test/integration/host_test.rb:453

Third line:

assert page.has_selector?('#inherited_parameters .btn[data-tag=override]')
page.find('#inherited_parameters .btn[data-tag=override]').click
assert page.has_no_selector?('#inherited_parameters .btn[data-tag=override]')

3) Assertion failure when overriding a smart class parameter and checking the text area is enabled.

HostIntegrationTest::edit page.test_0001_class parameters and overrides are displayed correctly for booleans (from HostIntegrationTest__edit page) 
Capybara::ElementNotFound: Unable to find css "textarea:enabled" 
    test/integration/host_test.rb:392:in `block (2 levels) in <class:HostIntegrationTest>' (Capybara::ElementNotFound)

Fourth line:

assert_equal class_params.find("textarea").value, "true" 
assert class_params.find("textarea:disabled")
class_params.find("a[data-tag='override']").click
assert class_params.find("textarea:enabled")

Files

screenshot_2016-01-18-15-15-15.704.html screenshot_2016-01-18-15-15-15.704.html 81.4 KB HTML from capybara-screenshot, for issue (1) Dominic Cleal, 01/21/2016 03:08 AM
screenshot_2016-01-18-15-15-15.704.png View screenshot_2016-01-18-15-15-15.704.png 42.2 KB screenshot from capybara-screenshot, for issue (1) Dominic Cleal, 01/21/2016 03:08 AM

Related issues 4 (0 open4 closed)

Related to Foreman - Bug #13111: Intermittent host#edit parameter integration test failuresClosedDominic Cleal01/11/2016Actions
Related to Foreman - Bug #14034: Intermediate failures on Jenkins for puppetclass_lookup_key integration testResolved03/03/2016Actions
Related to Foreman - Bug #14067: Host#edit integration tests should not wait for tasks or #show graphsClosedDaniel Lobato Garcia03/07/2016Actions
Related to Foreman - Bug #14340: Icons loading causes intermittent issues in integration tests (especially under heavier load of the test machine)ClosedIvan Necas03/24/2016Actions
Actions

Also available in: Atom PDF