#7902 389-ds-base-1.4.0.22-1 breaks TestAutomemberFindOrphans.test_find_orphan_automember_rules
Opened 2 months ago by cheimes. Modified 2 months ago

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

2 months ago

master:

  • 3fdbf48 Skip orphan automember rule test

ipa-4-7:

  • 10b99ac Skip orphan automember rule test

Login to comment on this ticket.

Metadata