#892 Permission rename test failing
Closed: Fixed None Opened 13 years ago by mkosek.

Several tests in Permission plugin fails:

test_permission[16]: permission_mod: Try to rename u'testperm' to existing permission u'testperm2' ... ok
test_permission[17]: permission_show: Check integrity of original permission u'testperm' ... FAIL
test_permission[18]: permission_mod: Rename u'testperm' to permission u'testperm1_rn' ... ERROR
test_permission[19]: permission_del: Delete u'testperm1_rn' ... ERROR
test_permission[20]: permission_del: Try to delete non-existent u'testperm' ... FAIL

Also description attribute removed in #792 is still present in the tests:

  AssertionError: assert_deepequal: dict keys mismatch.
  test_permission[17]: permission_show: Check integrity of original permission u'testperm'
  missing keys = ['description']
  extra keys = []
  expected = {'dn': u'cn=testperm,cn=permissions,cn=pbac,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com', 'cn': [u'testperm'], 'member_privilege': [u'testpriv1'], 'description': [u'New desc 1'], 'type': u'user', 'permissions': [u'write']}
  got = {'dn': u'cn=testperm,cn=permissions,cn=pbac,dc=idm,dc=lab,dc=bos,dc=redhat,dc=com', 'member_privilege': (u'testpriv1',), 'type': u'user', 'cn': (u'testperm',), 'permissions': (u'read',)}
  path = ('result',)

Metadata Update from @mkosek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.0 - 2011/01 (cleanup)

7 years ago

Login to comment on this ticket.

Metadata