mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
test_ipagetkeytab: use system-wide IPA CA cert location in tests
Since /etc/ipa/ca.crt should be always present on the test runner, we should use it in bind method tests and not rely on its presence in user conf dir. https://fedorahosted.org/freeipa/ticket/6409 Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
@@ -28,6 +28,7 @@ import gssapi
|
||||
import pytest
|
||||
|
||||
from ipalib import api
|
||||
from ipaplatform.paths import paths
|
||||
from ipapython import ipautil, ipaldap
|
||||
from ipaserver.plugins.ldap2 import ldap2
|
||||
from ipatests.test_cmdline.cmdline import cmdline_test
|
||||
@@ -211,7 +212,7 @@ class TestBindMethods(KeytabRetrievalTest):
|
||||
|
||||
os.close(tempfd)
|
||||
|
||||
shutil.copy(os.path.join(api.env.confdir, 'ca.crt'), temp_ca_cert)
|
||||
shutil.copy(os.path.join(paths.IPA_CA_CRT), temp_ca_cert)
|
||||
|
||||
cls.ca_cert = temp_ca_cert
|
||||
|
||||
|
||||
Reference in New Issue
Block a user