#7902 389-ds-base-1.4.0.22-1 breaks TestAutomemberFindOrphans.test_find_orphan_automember_rules
Closed: fixed 4 years ago by abbra. Opened 4 years ago by cheimes.

A new 389-DS release 389-ds-base-1.4.0.22-1.fc29 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.

https://travis-ci.org/freeipa/freeipa/jobs/517090067

=================================== 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

        hostgroup1.ensure_missing()

        # Test rebuild (is failing)
        try:
            api.Command['automember_rebuild'](type=u'hostgroup')
        except errors.DatabaseError:
            pass
        else:
>           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

4 years ago

master:

  • 3fdbf48 Skip orphan automember rule test

ipa-4-7:

  • 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)

4 years ago

master:

  • 11e4033 test_xmlrpc: fix TestAutomemberFindOrphans.test_find_orphan_automember_rules

ipa-4-8:

  • edb1ae5 test_xmlrpc: fix TestAutomemberFindOrphans.test_find_orphan_automember_rules

ipa-4-7:

  • 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)

4 years ago

Login to comment on this ticket.

Metadata