summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration/test_forced_client_reenrollment.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_integration/test_forced_client_reenrollment.py')
-rw-r--r--ipatests/test_integration/test_forced_client_reenrollment.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipatests/test_integration/test_forced_client_reenrollment.py b/ipatests/test_integration/test_forced_client_reenrollment.py
index cece522f8..ded1a2397 100644
--- a/ipatests/test_integration/test_forced_client_reenrollment.py
+++ b/ipatests/test_integration/test_forced_client_reenrollment.py
@@ -18,11 +18,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import subprocess
+from ipaplatform.paths import paths
from ipatests.test_integration.base import IntegrationTest
from ipatests.test_integration import tasks
-CLIENT_KEYTAB = '/etc/krb5.keytab'
+CLIENT_KEYTAB = paths.KRB5_KEYTAB
class TestForcedClientReenrollment(IntegrationTest):
@@ -274,9 +275,9 @@ class TestForcedClientReenrollment(IntegrationTest):
"""
Put server's ip address at the top of resolv.conf
"""
- contents = client.get_file_contents('/etc/resolv.conf')
+ contents = client.get_file_contents(paths.RESOLV_CONF)
nameserver = 'nameserver %s\n' % server.ip
if not contents.startswith(nameserver):
contents = nameserver + contents.replace(nameserver, '')
- client.put_file_contents('/etc/resolv.conf', contents)
+ client.put_file_contents(paths.RESOLV_CONF, contents)