#8919 Nightly test failure in test_webui/test_range.py::test_range::test_crud
Closed: fixed 2 years ago by frenaud. Opened 2 years ago by frenaud.

The nightly test test_webui/test_range.py::test_range::test_crud is failing, see PR #1029 with the following logs and report:

self = <ipatests.test_webui.test_range.test_range object at 0x7f481f185ee0>

    @screenshot
    def test_crud(self):
        """
        Basic CRUD: range
        """
>       self.basic_crud(ENTITY, self.get_data(PKEY), mod=False)

test_webui/test_range.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test_webui/ui_driver.py:1609: in basic_crud
    self.add_record(parent_entity, data, facet=search_facet,
test_webui/ui_driver.py:1537: in add_record
    self.assert_row_count(expected, new_count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <ipatests.test_webui.test_range.test_range object at 0x7f481f185ee0>
expected = 3, current = 0

    def assert_row_count(self, expected, current):
        """
        Assert that row counts match
        """
>       assert expected == current, "Rows don't match. Expected: %d, Got: %d" % (expected, current)
E       AssertionError: Rows don't match. Expected: 3, Got: 0

test_webui/ui_driver.py:2091: AssertionError

The test is failing trying to add a new local id range. It is calculating the range parameters from the existing ranges (to avoid any overlap) but the calculation may produce values outside of the allowed range:
- baseID 4295836324 > 4294967295
- primary RID base 4295636474 > 2147483647
- secondary rid base 4295636474 > 2147483647

Need to understand why the test started failing recently, but a suspect would be the commit related to subordinate user/group ids (see PR #5713)


Metadata Update from @mpolovka:
- Issue assigned to mpolovka

2 years ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/5902
- Issue assigned to frenaud (was: mpolovka)

2 years ago

master:

  • 319aa7a webui tests: fix algo for finding available idrange

ipa-4-9:

  • f7997ed webui tests: fix algo for finding available idrange

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

2 years ago

Login to comment on this ticket.

Metadata