#5368 Leftover user entry in LDAP after running user plugin tests
Closed: Fixed None Opened 7 years ago by mbabinsk.

After running XMLRPC tests there is a 'tuser1' entry left in LDAP. While not affecting the subsequent tests in any way, we should clean up all stuff generated during testing dilligently.

I have tracked down the issue to an improper teardown in {{{test_xmlrpc/test_user_plugin.py:test_denied_bind_with_expired_principal}}} class: the test user entry is created in the first test scenario but never deleted.

Steps to reproduce:

1.) install IPA server, verify that 'tuser1' entry does not exist:

# ipa user-del tuser1
ipa: ERROR: tuser1: user not found

2.) run test_user_plugin.py test suite

3.) check that there is a leftover 'tuser1' entry in LDAP

# ipa user-show tuser1
  User login: tuser1
  First name: Test
  Last name: User1
  Home directory: /home/tuser1
  Login shell: /bin/sh
  Kerberos principal expiration: 20201207195413Z
  Email address: tuser1@ipa.test
  UID: 1229800347
  GID: 1229800347
  Account disabled: False
  Password: True
  Member of groups: ipausers
  Kerberos keys available: True

master:

  • af1f672 fix class teardown in user plugin tests

ipa-4-2:

  • 1573d3a fix class teardown in user plugin tests

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

6 years ago

Login to comment on this ticket.

Metadata