summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorLenka Doudova <ldoudova@redhat.com>2016-09-20 09:12:48 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-21 18:46:37 +0200
commitc0fcfb31ecb2d17c3484d752edf55a42ef04ead7 (patch)
tree8658ff867abfcdaa6d3a2e401e14acd1a2ff1e17 /ipatests/test_xmlrpc
parent936a6a38b8e7ece83933090db5840ebd37c26c20 (diff)
downloadfreeipa-c0fcfb31ecb2d17c3484d752edf55a42ef04ead7.tar.gz
freeipa-c0fcfb31ecb2d17c3484d752edf55a42ef04ead7.tar.xz
freeipa-c0fcfb31ecb2d17c3484d752edf55a42ef04ead7.zip
Tests: Update host test with ipa-join
Updating path to ipa-join command to allow execution of test_xmlrpc/test_host::TestHostFalsePwdChange::test_join_host. https://fedorahosted.org/freeipa/ticket/6326 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_host_plugin.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/ipatests/test_xmlrpc/test_host_plugin.py b/ipatests/test_xmlrpc/test_host_plugin.py
index 4ddabefff..7e1dad0b9 100644
--- a/ipatests/test_xmlrpc/test_host_plugin.py
+++ b/ipatests/test_xmlrpc/test_host_plugin.py
@@ -42,6 +42,7 @@ from ipatests.test_xmlrpc import objectclasses
from ipatests.test_xmlrpc.tracker.host_plugin import HostTracker
from ipatests.test_xmlrpc.testcert import get_testcert
from ipatests.util import assert_deepequal
+from ipaplatform.paths import paths
# Constants DNS integration tests
# TODO: Use tracker fixtures for zones/records/users/groups
@@ -520,14 +521,18 @@ class TestHostFalsePwdChange(XMLRPC_test):
def test_join_host(self, host, keytabname):
"""
Create a test host and join it into IPA.
+
+ This test must not run remotely.
"""
- join_command = 'ipa-client/ipa-join'
- if not os.path.isfile(join_command):
- pytest.skip("Command '%s' not found" % join_command)
+ if not os.path.isfile(paths.SBIN_IPA_JOIN):
+ pytest.skip("Command '%s' not found. "
+ "The test must not run remotely."
+ % paths.SBIN_IPA_JOIN)
# create a test host with bulk enrollment password
host.track_create()
+
del host.attrs['krbprincipalname']
host.attrs['has_password'] = True
objclass = list(set(
@@ -545,7 +550,7 @@ class TestHostFalsePwdChange(XMLRPC_test):
# joint the host with the bulk password
new_args = [
- join_command,
+ paths.SBIN_IPA_JOIN,
"-s", host.api.env.host,
"-h", host.fqdn,
"-k", keytabname,