#7902 389-ds-base- breaks TestAutomemberFindOrphans.test_find_orphan_automember_rules
Closed: fixed 2 years ago by abbra. Opened 3 years ago by cheimes.

A new 389-DS release 389-ds-base- was pushed to Fedor 29 yesterday, https://bodhi.fedoraproject.org/updates/FEDORA-2019-35ca2e35b3. The update seems to break the test case TestAutomemberFindOrphans.test_find_orphan_automember_rules. The test has been failing since yesterday evening on two PRs.


=================================== FAILURES ===================================
_________ TestAutomemberFindOrphans.test_find_orphan_automember_rules __________
self = <ipatests.test_xmlrpc.test_automember_plugin.TestAutomemberFindOrphans object at 0x7fbb772d9fd0>
hostgroup1 = <ipatests.test_xmlrpc.tracker.hostgroup_plugin.HostGroupTracker object at 0x7fbb772e63c8>
    def test_find_orphan_automember_rules(self, hostgroup1):
        """ Remove hostgroup1, find and remove obsolete automember rules. """
        # Remove hostgroup1


        # Test rebuild (is failing)
        except errors.DatabaseError:
>           pytest.fail("automember_rebuild was not failing with "
                        "an orphan automember rule")
E           Failed: automember_rebuild was not failing with an orphan automember rule
/usr/lib/python3.6/site-packages/ipatests/test_xmlrpc/test_automember_plugin.py:846: Failed
----------------------------- Captured stdout call -----------------------------
Ran command: ipaserver.plugins.hostgroup.hostgroup_del()('thostgroup1', version='2.231'): OK
--------------------------- Captured stdout teardown ---------------------------
Ran command: ipaserver.plugins.automember.automember_del()('thostgroup1', type='hostgroup', version='2.231'): OK
Ran command: ipaserver.plugins.hostgroup.hostgroup_del()('thostgroup1', version='2.231'): NotFound: thostgroup1: host group not found
Ran command: ipaserver.plugins.host.host_del()('web1.ipa.test', version='2.231'): OK
============================= 31 tests deselected ==============================
====== 1 failed, 1181 passed, 5 skipped, 31 deselected in 484.86 seconds =======

389-DS improved the handling of automember rules, https://pagure.io/389-ds-base/issue/50077. Alexander proposed to remove the test case.

Metadata Update from @abbra:
- Issue assigned to abbra

3 years ago


  • 3fdbf48 Skip orphan automember rule test


  • 10b99ac Skip orphan automember rule test

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

2 years ago


  • 11e4033 test_xmlrpc: fix TestAutomemberFindOrphans.test_find_orphan_automember_rules


  • edb1ae5 test_xmlrpc: fix TestAutomemberFindOrphans.test_find_orphan_automember_rules


  • 033c21d test_xmlrpc: fix TestAutomemberFindOrphans.test_find_orphan_automember_rules

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

2 years ago

Login to comment on this ticket.