mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-12 17:21:55 -06:00
Tests: Fix host attributes in ipa-join host test
Fixing discrepancies between returned and checked attributes in ipa-join host test, that arose after recent changes in behavior. https://fedorahosted.org/freeipa/ticket/6326 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
bc6dbfb4d8
commit
9a2f9c27cd
@ -533,7 +533,10 @@ class TestHostFalsePwdChange(XMLRPC_test):
|
||||
# create a test host with bulk enrollment password
|
||||
host.track_create()
|
||||
|
||||
# manipulate host.attrs to correspond with real attributes of host
|
||||
# after creating it with random password
|
||||
del host.attrs['krbprincipalname']
|
||||
del host.attrs['krbcanonicalname']
|
||||
host.attrs['has_password'] = True
|
||||
objclass = list(set(
|
||||
host.attrs['objectclass']) - {u'krbprincipal', u'krbprincipalaux'})
|
||||
@ -565,10 +568,13 @@ class TestHostFalsePwdChange(XMLRPC_test):
|
||||
# the keytab is not necessary for further tests
|
||||
print(e)
|
||||
|
||||
# fix host.attrs again to correspond with current state
|
||||
host.attrs['has_keytab'] = True
|
||||
host.attrs['has_password'] = False
|
||||
host.attrs['krbprincipalname'] = [u'host/%s@%s' % (host.fqdn,
|
||||
host.api.env.realm)]
|
||||
host.attrs['krbcanonicalname'] = [u'host/%s@%s' % (host.fqdn,
|
||||
host.api.env.realm)]
|
||||
host.retrieve()
|
||||
|
||||
# Try to change the password of enrolled host with specified password
|
||||
|
Loading…
Reference in New Issue
Block a user