#6956 Backup and restore tests faliling
Closed: fixed 7 years ago Opened 7 years ago by fbarreto.

The test_backup_and_restore.py tests are failing. They all fail for the same reason:

self = <ipatests.test_integration.test_backup_and_restore.TestBackupAndRestore object at 0x7f2d0f5c2fd0>

    def test_full_backup_and_restore(self):
        """backup, uninstall, restore"""
>       with restore_checker(self.master):

test_integration/test_backup_and_restore.py:146: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python2.7/contextlib.py:17: in __enter__
    return self.gen.next()
test_integration/test_backup_and_restore.py:114: in restore_checker
    results.append(check(host))
test_integration/test_backup_and_restore.py:61: in check_admin_in_ldap
    del entry['krbLastSuccessfulAuth']
../ipapython/ipaldap.py:445: in __delitem__
    name = self._get_attr_name(name)
../ipapython/ipaldap.py:405: in _get_attr_name
    name = self._names[name]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {u'krbprincipalkey': u'krbPrincipalKey', u'surname': u'sn', u'uid': u'uid', u'...': u'krbPrincipalName', u'krblastpwdchange': u'krbLastPwdChange', u'sn': u'sn'}
key = 'krbLastSuccessfulAuth'

    def __getitem__(self, key):
>       return super(CIDict, self).__getitem__(key.lower())
E       KeyError: u'krblastsuccessfulauth'

../ipapython/ipautil.py:566: KeyError

Metadata Update from @fbarreto:
- Issue assigned to fbarreto

7 years ago

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.6

7 years ago

Metadata Update from @mbabinsk:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/820
- Issue set to the milestone: None (was: FreeIPA 4.6)

7 years ago

Metadata Update from @mbabinsk:
- Issue set to the milestone: FreeIPA 4.6

7 years ago

master:

  • 2624cf2 test_backup_restore: do not fail on missing KrbLastSuccessfulAuth
  • 1e5f55e Do not delete DS and PKI users during backup/restore tests

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

7 years ago

Log in to comment on this ticket.

Metadata