Actions
Bug #15134
closedIntermittent HostJSTest::NIC modal window::adding interfaces.test_0003_setting primary updates host name failure
Description
Tests fail intermittently on develop with:
HostJSTest::NIC modal window::adding interfaces.test_0003_setting primary updates host name (from HostJSTest__NIC modal window__adding interfaces) Failed assertion, no message given. (Minitest::Assertion) /var/lib/workspace/workspace/test_develop/database/postgresql/ruby/2.3/slave/fast/test/integration/host_js_test.rb:396
(after 33 seconds.)
09:53:27 HostJSTest::edit page#test_0001_fields are not inherited on edit = 3.11 s = . 09:53:30 HostJSTest::NIC modal window::editing interfaces#test_0001_click on edit opens modal = 2.90 s = . 09:53:33 HostJSTest::NIC modal window::editing interfaces#test_0002_ok button updates overview table = 3.14 s = . 09:53:36 HostJSTest::NIC modal window::adding interfaces#test_0001_click on add opens modal = 2.90 s = . 09:53:39 HostJSTest::NIC modal window::adding interfaces#test_0002_ok button adds new interface = 2.88 s = . 09:53:42 HostJSTest::NIC modal window::adding interfaces#test_0004_selecting domain updates subnet list = 3.29 s = . 09:54:16 HostJSTest::NIC modal window::adding interfaces#test_0003_setting primary updates host name = 33.61 s = F 09:54:33 HostJSTest::NIC modal window::adding interfaces#test_0005_selecting domain updates puppetclass parameters = 3.86 s = . 09:54:33 HostJSTest::NIC modal window::switching flags from the overview table#test_0001_switch primary = 3.51 s = . 09:54:33 HostJSTest::NIC modal window::switching flags from the overview table#test_0002_switch provisioning = 3.38 s = . 09:54:33 HostJSTest::NIC modal window::removing interfaces#test_0001_remove interface = 3.41 s = .
Files
Updated by Dominic Cleal over 8 years ago
- Related to Bug #9138: Intermittent HostTest/NIC integration test failures added
Updated by Dominic Cleal over 8 years ago
I added some debug (https://github.com/domcleal/foreman/commits/15134-test_nic) into save_interface_modal() and update_fqdn(), and after many runs it shows that host_name is correctly to 'name', but no domain is selected and so the FQDN isn't changed.
save_interface_modal(): saved hidden modal save_interface_modal(): closed modal save_interface_modal(): synced primary name save_interface_modal(): updated interface table update_fqdn(): name update_fqdn(): update_fqdn(): update_fqdn(): [object Object] (hostFQDN, ) update_fqdn(): text set () update_fqdn(): [object Object] (hostFQDN, ) update_fqdn(): text set () save_interface_modal(): updated fqdn
Actions
#3
Updated by Ivan Necas over 8 years ago
- File capybara-201607130851431355427659.png capybara-201607130851431355427659.png added
- File capybara-201607130851457933604013.png capybara-201607130851457933604013.png added
- Status changed from New to Assigned
- Assignee set to Ivan Necas
I've debugged the issue with the approach described in http://projects.theforeman.org/issues/14340/ and noticed that the ajax call happnes
during the time of the failure. The problem happnes when the freeip call finishes at the time of clicking to the Ok button:
1. capybara calculates the position to click on
2. the ajax finishes, error message is shown, which causes the button to change the position
3. capybara clicks on the spot, where the button used to be, but misses it
The solution should be to put wait_for_ajax before button clicking
Updated by The Foreman Bot over 8 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3646 added
Updated by Ivan Necas over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 72e9afe43d6c665ee9a2e8acdef5db91f5e5fdad.
Updated by Dominic Cleal over 8 years ago
- Translation missing: en.field_release set to 160
Actions