URL: https://github.com/freeipa/freeipa/pull/218 Author: martbab Title: #218: test_ipagetkeytab: use system-wide IPA CA cert location in tests Action: opened
PR body: """ 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 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/218/head:pr218 git checkout pr218
From bf72528ff5ac3d37938eb39d5b5c0d995485c17c Mon Sep 17 00:00:00 2001 From: Martin Babinsky <mbabi...@redhat.com> Date: Wed, 9 Nov 2016 11:35:44 +0100 Subject: [PATCH] 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 --- ipatests/test_cmdline/test_ipagetkeytab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipatests/test_cmdline/test_ipagetkeytab.py b/ipatests/test_cmdline/test_ipagetkeytab.py index 25c31ea..2f74ae9 100644 --- a/ipatests/test_cmdline/test_ipagetkeytab.py +++ b/ipatests/test_cmdline/test_ipagetkeytab.py @@ -28,6 +28,7 @@ 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 @@ def setup_class(cls): 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
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code