#8238 Nightly test failure in fedora-27/test_sssd
Closed: fixed 4 months ago by frenaud. Opened 4 months ago by frenaud.

The nightly test fedora-27/test_sssd is failing, see for example PR 4410 with the following log:

self = <ipatests.test_integration.test_sssd.TestSSSDWithAdTrust object at 0x7f143d19fe48>
user_origin = 'ipa'

    @pytest.mark.parametrize('user_origin', ['ipa', 'ad'])
    def test_external_group_member_mismatch(self, user_origin):
        """Prevent adding IPA objects as external group external members

            External groups must only allow adding non-IPA objects as external
            members in 'ipa group-add-member foo --external bar'.
            """
        master = self.master
        tasks.clear_sssd_cache(master)
        tasks.kinit_admin(master)
        master.run_command(['ipa', 'group-add', '--external',
                            'ext-ipatest'])
        try:
            master.run_command(['ipa', 'group-add-member',
                                'ext-ipatest',
                                '--external',
>                               self.users[user_origin]['name']])
E                               KeyError: 'ipa'

test_integration/test_sssd.py:235: KeyError

The error comes from an incomplete backport. In the master branch, the following definition is used:

    users = {
        'ipa': {
            'name': 'user1',
            'password': 'SecretUser1',
            'group': 'user1',
        },
        'ad': {
            'name_tmpl': 'testuser@{domain}',
            'password': 'Secret123',
            'group_tmpl': 'testgroup@{domain}',
        },
        'fakeuser': {
            'name': 'some_user@some.domain'
        },
    }

while in ipa-4-6 branch we have:

    users = {
        'ad': {
            'name_tmpl': 'testuser@{domain}',
            'password': 'Secret123'
        },
        'fakeuser': {
            'name': 'some_user@some.domain'
        },
    }

Metadata Update from @frenaud:
- Issue assigned to frenaud

4 months ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/4411

4 months ago

ipa-4-6:

  • bce5097 ipatests: fix KeyError in test_sssd
  • 7b9cdfb ipatests: fix group-add-member in test_sssd

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

4 months ago

Login to comment on this ticket.

Metadata