tests: Added necessary getkeytabs calls to fixtures

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Oleg Fayans 2016-09-09 14:17:49 +02:00 committed by David Kupka
parent 759bbcdfcb
commit d17d13d77a

View File

@ -1194,6 +1194,9 @@ class TestIPACommands(CALessBase):
self.master.run_command(['ipa', 'host-add', self.test_hostname,
'--force',
'--certificate', self.client_pem])
self.master.run_command(['ipa-getkeytab', '-s', self.master.hostname,
'-p' "host/%s" % self.test_hostname,
'-k', paths.IPA_KEYTAB])
try:
yield
finally:
@ -1207,6 +1210,10 @@ class TestIPACommands(CALessBase):
self.master.run_command(['ipa', 'service-add', self.test_service,
'--force',
'--certificate', self.client_pem])
self.master.run_command(['ipa-getkeytab', '-s',
self.master.hostname,
'-p', self.test_service,
'-k', paths.IPA_KEYTAB])
yield
def test_service_mod_doesnt_revoke(self):