#9161 Nightly test failure in test_selinuxusermap.py::test_selinuxusermap::test_misc
Closed: fixed by frenaud. Opened by frenaud.

The nightly test test_selinuxusermap.py::test_selinuxusermap::test_misc is failing, see for instance PR#1728 with the following report and logs:

self = <ipatests.test_webui.test_selinuxusermap.test_selinuxusermap object at 0x7f5d6e3e7190>
    @screenshot
    def test_misc(self):
        """
        Test various miscellaneous test cases under one roof to save init time
        """
        self.init_app()
        # test add and add another record
        self.add_record(selinuxmap.ENTITY, [selinuxmap.DATA, selinuxmap.DATA2])
        # test delete multiple records
>       self.delete_record([selinuxmap.DATA, selinuxmap.DATA2])

Screenshot of the failure: http://freeipa-org-pr-ci.s3-website.eu-central-1.amazonaws.com/jobs/018e58fc-d944-11ec-9f13-fa163e21c439/2022-05-21T21:02:27.082087_test_selinuxusermap_test_misc.png

Test scenario:
- Add a new selinuxuser map guest_u:s0
- Add a new selinuxuser map guest_u:s0
- Delete the previously added maps

The test fails in the call delete_record of the ui_driver. This method first ensures that the record is present then deletes it. Here, it fails ensuring the record presence, probably because of the notification still visible in the notification area SELinux User Map successfully added.

The test should clear the notifications after the addition of new maps.


Update: the issue is not related to the notification. Even when all the notifications are closed, the test fails (see this test report).

test failure seen in testing_master_latest PR 1734 Report

Reproducible in testing_master_latest PR 1743 Report

Reproducible in testing_master_latest PR 1752Report

Reproducible in testing_master_latest PR 1760 Report

Reproducible in testing_master_latest PR 1778 Report

Reproducible in testing_master_latest PR 1813 Report

Reproducible in testing_master_latest PR 1821 Report

Reproducible in testing_master_latest PR 1838 Report

Reproducible in testing_master_latest PR 1856 Report

Reproducible in testing_master_latest PR 1866 Report

Reproducible in testing_master_latest PR 1887 Report

Reproducible in testing_master_latest PR Report

Reproducible in testing_master_latest PR 1906 Report

Reproducible in testing_master_testing_selinux Report

Reproducible in testing_master_latest PR 1916 Report

Reproducible in testing_master_latest PR 1927 Report

Reproducible in testing_master_latest PR 1937 Report

Reproducible in testing_master_latest PR 1965 Report

Reproducible in testing_master_latest PR 1975 Report

Reproducible in testing_master_latest PR 1985 Report

Reproducible in testing_master_latest PR 1995 Report

master:

  • 090d4f9e9d1089afb841678da8ca7d79d639df84 Set pkeys in test_selinuxusermap.py::test_misc::delete_record

ipa-4-10:

  • ea792e11eb85a5b05b2b78f0215c147a52d2d265 Set pkeys in test_selinuxusermap.py::test_misc::delete_record

ipa-4-9:

  • cefa8f1e5f5b01e6863d07e9f3849dfd4c485f22 Set pkeys in test_selinuxusermap.py::test_misc::delete_record

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata