#8274 Nightly test failure in test_webui/test_automount.py::TestAutomount::test_confirm_dialogs_with_enter_key
Opened 3 months ago by fcami. Modified 2 months ago

The nightly test fedora-previous/test_webui_network failed in PR #4543. Logs.

report:

self = <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>

    @screenshot
    def test_confirm_dialogs_with_enter_key(self):
        """
        Test dialogs can be closed by pressing ENTER
        """

        # Add location
        self.navigate_to_entity(LOC_ENTITY, 'search')
        self._add_record_with_enter_key(LOC_DATA)

        # Add map
        self.navigate_to_record(LOC_PKEY)
        self._add_record_with_enter_key(MAP_DATA)

        # Add key
        self.navigate_to_record(MAP_PKEY)
        self._add_record_with_enter_key(KEY_DATA)

        # Delete key
>       self._delete_record_with_enter_key(KEY_PKEY)

test_webui/test_automount.py:616: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>
pkey = 'itestkey'

    def _delete_record_with_enter_key(self, pkey):
>       assert self.has_record(pkey)
E       AssertionError: assert False
E        +  where False = <bound method UI_driver.has_record of <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>>('itestkey')
E        +    where <bound method UI_driver.has_record of <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>> = <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>.has_record

test_webui/test_automount.py:216: AssertionError

runner log:

2020-04-17 00:51:18,277    DEBUG  ============================= test session starts ==============================
2020-04-17 00:51:18,277    DEBUG  platform linux -- Python 3.7.6, pytest-5.3.5, py-1.7.0, pluggy-0.13.1 -- /usr/bin/python3
2020-04-17 00:51:18,278    DEBUG  cachedir: /root/.pytest_cache
2020-04-17 00:51:18,278    DEBUG  metadata: {'Python': '3.7.6', 'Platform': 'Linux-5.4.21-100.fc30.x86_64-x86_64-with-fedora-30-Thirty', 'Packages': {'pytest': '5.3.5', 'py': '1.7.0', 'pluggy': '0.13.1'}, 'Plugins': {'html': '2.0.1', 'metadata': '1.8.0', 'sourceorder': '0.5', 'multihost': '3.0'}}
2020-04-17 00:51:18,278    DEBUG  rootdir: /usr/lib/python3.7/site-packages/ipatests
2020-04-17 00:51:18,278    DEBUG  plugins: html-2.0.1, metadata-1.8.0, sourceorder-0.5, multihost-3.0
2020-04-17 00:51:18,631    DEBUG  collecting ... collected 21 items
2020-04-17 00:51:18,632    DEBUG  
2020-04-17 00:53:37,444    DEBUG  test_webui/test_automount.py::TestAutomount::test_crud PASSED            [  4%]
2020-04-17 00:54:52,114    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_location_dialog PASSED [  9%]
2020-04-17 00:56:08,846    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_map_dialog[maps0] PASSED [ 14%]
2020-04-17 00:57:26,889    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_map_dialog[maps1] PASSED [ 19%]
2020-04-17 00:58:27,699    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_indirect_map_with_missing_fields PASSED [ 23%]
2020-04-17 00:59:39,305    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_duplicated_indirect_map PASSED [ 28%]
2020-04-17 01:00:42,782    DEBUG  test_webui/test_automount.py::TestAutomount::test_modify_map[map_data0] PASSED [ 33%]
2020-04-17 01:01:44,758    DEBUG  test_webui/test_automount.py::TestAutomount::test_modify_map[map_data1] PASSED [ 38%]
2020-04-17 01:03:06,084    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_key_dialog PASSED  [ 42%]
2020-04-17 01:04:10,028    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_key_with_missing_fields PASSED [ 47%]
2020-04-17 01:05:17,822    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_duplicated_key PASSED [ 52%]
2020-04-17 01:06:23,869    DEBUG  test_webui/test_automount.py::TestAutomount::test_modify_key PASSED      [ 57%]
2020-04-17 01:07:14,301    DEBUG  test_webui/test_automount.py::TestAutomount::test_confirm_dialogs_with_enter_key FAILED [ 61%]
2020-04-17 01:08:32,152    DEBUG  test_webui/test_dns.py::test_dns::test_zone_record_crud PASSED           [ 66%]
2020-04-17 01:10:19,121    DEBUG  test_webui/test_dns.py::test_dns::test_forward_zone PASSED               [ 71%]
2020-04-17 01:11:24,003    DEBUG  test_webui/test_dns.py::test_dns::test_last_entry_deletion PASSED        [ 76%]
2020-04-17 01:12:12,141    DEBUG  test_webui/test_dns.py::test_dns::test_config_crud PASSED                [ 80%]
2020-04-17 01:13:16,016    DEBUG  test_webui/test_vault.py::test_vault::test_crud PASSED                   [ 85%]
2020-04-17 01:14:20,870    DEBUG  test_webui/test_vault.py::test_vault::test_add_service_vault PASSED      [ 90%]
2020-04-17 01:15:12,175    DEBUG  test_webui/test_vault.py::test_vault::test_add_shared_vault PASSED       [ 95%]
2020-04-17 01:18:32,530    DEBUG  test_webui/test_vault.py::test_vault::test_member_owner_vault PASSED     [100%]
2020-04-17 01:18:32,533    DEBUG  
2020-04-17 01:18:32,533    DEBUG  =================================== FAILURES ===================================
2020-04-17 01:18:32,533    DEBUG  ______________ TestAutomount.test_confirm_dialogs_with_enter_key _______________
2020-04-17 01:18:32,534    DEBUG  
2020-04-17 01:18:32,534    DEBUG  self = <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>
2020-04-17 01:18:32,534    DEBUG  
2020-04-17 01:18:32,534    DEBUG      @screenshot
2020-04-17 01:18:32,534    DEBUG      def test_confirm_dialogs_with_enter_key(self):
2020-04-17 01:18:32,534    DEBUG          """
2020-04-17 01:18:32,535    DEBUG          Test dialogs can be closed by pressing ENTER
2020-04-17 01:18:32,535    DEBUG          """
2020-04-17 01:18:32,535    DEBUG      
2020-04-17 01:18:32,535    DEBUG          # Add location
2020-04-17 01:18:32,535    DEBUG          self.navigate_to_entity(LOC_ENTITY, 'search')
2020-04-17 01:18:32,540    DEBUG          self._add_record_with_enter_key(LOC_DATA)
2020-04-17 01:18:32,540    DEBUG      
2020-04-17 01:18:32,540    DEBUG          # Add map
2020-04-17 01:18:32,540    DEBUG          self.navigate_to_record(LOC_PKEY)
2020-04-17 01:18:32,540    DEBUG          self._add_record_with_enter_key(MAP_DATA)
2020-04-17 01:18:32,540    DEBUG      
2020-04-17 01:18:32,541    DEBUG          # Add key
2020-04-17 01:18:32,541    DEBUG          self.navigate_to_record(MAP_PKEY)
2020-04-17 01:18:32,541    DEBUG          self._add_record_with_enter_key(KEY_DATA)
2020-04-17 01:18:32,541    DEBUG      
2020-04-17 01:18:32,541    DEBUG          # Delete key
2020-04-17 01:18:32,542    DEBUG  >       self._delete_record_with_enter_key(KEY_PKEY)
2020-04-17 01:18:32,542    DEBUG  
2020-04-17 01:18:32,542    DEBUG  test_webui/test_automount.py:616: 
2020-04-17 01:18:32,542    DEBUG  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2020-04-17 01:18:32,542    DEBUG  
2020-04-17 01:18:32,543    DEBUG  self = <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>
2020-04-17 01:18:32,543    DEBUG  pkey = 'itestkey'
2020-04-17 01:18:32,544    DEBUG  
2020-04-17 01:18:32,544    DEBUG      def _delete_record_with_enter_key(self, pkey):
2020-04-17 01:18:32,544    DEBUG  >       assert self.has_record(pkey)
2020-04-17 01:18:32,544    DEBUG  E       AssertionError: assert False
2020-04-17 01:18:32,544    DEBUG  E        +  where False = <bound method UI_driver.has_record of <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>>('itestkey')
2020-04-17 01:18:32,545    DEBUG  E        +    where <bound method UI_driver.has_record of <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>> = <ipatests.test_webui.test_automount.TestAutomount object at 0x7f292d7f4450>.has_record
2020-04-17 01:18:32,545    DEBUG  
2020-04-17 01:18:32,545    DEBUG  test_webui/test_automount.py:216: AssertionError
2020-04-17 01:18:32,545    DEBUG  =============================== warnings summary ===============================
2020-04-17 01:18:32,545    DEBUG  /usr/local/lib/python3.7/site-packages/_pytest/junitxml.py:436
2020-04-17 01:18:32,549    DEBUG    /usr/local/lib/python3.7/site-packages/_pytest/junitxml.py:436: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
2020-04-17 01:18:32,550    DEBUG    Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.
2020-04-17 01:18:32,550    DEBUG      _issue_warning_captured(deprecated.JUNIT_XML_DEFAULT_FAMILY, config.hook, 2)
2020-04-17 01:18:32,551    DEBUG  
2020-04-17 01:18:32,551    DEBUG  test_webui/test_automount.py::TestAutomount::test_crud
2020-04-17 01:18:32,551    DEBUG  test_webui/test_dns.py::test_dns::test_zone_record_crud
2020-04-17 01:18:32,551    DEBUG  test_webui/test_vault.py::test_vault::test_crud
2020-04-17 01:18:32,552    DEBUG    /usr/lib/python3.7/site-packages/ipatests/test_webui/ui_driver.py:194: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
2020-04-17 01:18:32,552    DEBUG      cls.config = yaml.load(conf)
2020-04-17 01:18:32,552    DEBUG  
2020-04-17 01:18:32,552    DEBUG  test_webui/test_automount.py::TestAutomount::test_crud
2020-04-17 01:18:32,552    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_location_dialog
2020-04-17 01:18:32,552    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_map_dialog[maps0]
2020-04-17 01:18:32,553    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_map_dialog[maps1]
2020-04-17 01:18:32,553    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_indirect_map_with_missing_fields
2020-04-17 01:18:32,553    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_duplicated_indirect_map
2020-04-17 01:18:32,553    DEBUG  test_webui/test_automount.py::TestAutomount::test_modify_map[map_data0]
2020-04-17 01:18:32,553    DEBUG  test_webui/test_automount.py::TestAutomount::test_modify_map[map_data1]
2020-04-17 01:18:32,553    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_key_dialog
2020-04-17 01:18:32,554    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_key_with_missing_fields
2020-04-17 01:18:32,554    DEBUG  test_webui/test_automount.py::TestAutomount::test_add_duplicated_key
2020-04-17 01:18:32,554    DEBUG  test_webui/test_automount.py::TestAutomount::test_modify_key
2020-04-17 01:18:32,554    DEBUG  test_webui/test_automount.py::TestAutomount::test_confirm_dialogs_with_enter_key
2020-04-17 01:18:32,554    DEBUG  test_webui/test_dns.py::test_dns::test_zone_record_crud
2020-04-17 01:18:32,554    DEBUG  test_webui/test_dns.py::test_dns::test_forward_zone
2020-04-17 01:18:32,555    DEBUG  test_webui/test_dns.py::test_dns::test_last_entry_deletion
2020-04-17 01:18:32,555    DEBUG  test_webui/test_dns.py::test_dns::test_config_crud
2020-04-17 01:18:32,555    DEBUG  test_webui/test_vault.py::test_vault::test_crud
2020-04-17 01:18:32,555    DEBUG  test_webui/test_vault.py::test_vault::test_add_service_vault
2020-04-17 01:18:32,555    DEBUG  test_webui/test_vault.py::test_vault::test_add_shared_vault
2020-04-17 01:18:32,556    DEBUG  test_webui/test_vault.py::test_vault::test_member_owner_vault
2020-04-17 01:18:32,556    DEBUG    /usr/lib/python3.7/site-packages/ipatests/test_webui/ui_driver.py:271: DeprecationWarning: use service_log_path instead of log_path
2020-04-17 01:18:32,556    DEBUG      driver = webdriver.Firefox(fp, log_path=ff_log_path)
2020-04-17 01:18:32,556    DEBUG  
2020-04-17 01:18:32,556    DEBUG  -- Docs: https://docs.pytest.org/en/latest/warnings.html
2020-04-17 01:18:32,557    DEBUG  -------------------- generated xml file: /vagrant/junit.xml --------------------
2020-04-17 01:18:32,557    DEBUG  --------------- generated html file: file:///vagrant/report.html ---------------
2020-04-17 01:18:32,557    DEBUG  ============ 1 failed, 20 passed, 25 warnings in 1634.34s (0:27:14) ============

Metadata Update from @fcami:
- Issue tagged with: test-failure, tests

3 months ago

Also happened in testing_master_previous nightly test with fedora31 in PR 193, see logs.

Login to comment on this ticket.

Metadata