summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration/tasks.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-06-11 20:22:19 -0400
committerPetr Viktorin <pviktori@redhat.com>2013-07-15 15:49:12 +0200
commita02890526ed099f7b37684295ca67d49b4c1737b (patch)
treeba47b9e40973eb352ce2dc5abaf7fe59696cf0ca /ipatests/test_integration/tasks.py
parent846ae2b3f4807f2b1897811b9fe9978103c2451a (diff)
downloadfreeipa-a02890526ed099f7b37684295ca67d49b4c1737b.tar.gz
freeipa-a02890526ed099f7b37684295ca67d49b4c1737b.tar.xz
freeipa-a02890526ed099f7b37684295ca67d49b4c1737b.zip
Host class improvements
- Use the external hostname when connecting to remote hosts - Make it possible to specify working directory for remote commands - Move kinit calls to installation code This allows tests where installation is done later - Log at error level when a remote command fails unexpectedly - Clean up test directory before testing - Break infinite recursion in mkdir_recursive if dir can't be created
Diffstat (limited to 'ipatests/test_integration/tasks.py')
-rw-r--r--ipatests/test_integration/tasks.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipatests/test_integration/tasks.py b/ipatests/test_integration/tasks.py
index 5e4606276..d131e4df6 100644
--- a/ipatests/test_integration/tasks.py
+++ b/ipatests/test_integration/tasks.py
@@ -148,6 +148,8 @@ def install_master(host, collect_log=None):
enable_replication_debugging(host)
+ host.run_command(['kinit', 'admin'],
+ stdin_text=host.config.admin_password)
def install_replica(master, replica, collect_log=None):
if collect_log:
@@ -173,6 +175,9 @@ def install_replica(master, replica, collect_log=None):
enable_replication_debugging(replica)
+ replica.run_command(['kinit', 'admin'],
+ stdin_text=replica.config.admin_password)
+
def connect_replica(master, replica=None):
if replica is None: