summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration/base.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-06-13 06:22:14 -0400
committerPetr Viktorin <pviktori@redhat.com>2013-07-15 15:49:08 +0200
commit5365e1b81bb58425b3ac9f6234f01a381ea026ac (patch)
tree4b0eb88d657229070b33040ca788fd3369033f44 /ipatests/test_integration/base.py
parent00f133458b72239000a39786d9a36ea2df7f2d8e (diff)
downloadfreeipa-5365e1b81bb58425b3ac9f6234f01a381ea026ac.tar.gz
freeipa-5365e1b81bb58425b3ac9f6234f01a381ea026ac.tar.xz
freeipa-5365e1b81bb58425b3ac9f6234f01a381ea026ac.zip
Collect logs from tests
After each test, and after class setups and teardowns, the BeakerLib integration plugin now downloads log files from the remote masters and submits them using rlFileSubmit. Part of the work for: https://fedorahosted.org/freeipa/ticket/3621
Diffstat (limited to 'ipatests/test_integration/base.py')
-rw-r--r--ipatests/test_integration/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipatests/test_integration/base.py b/ipatests/test_integration/base.py
index 8e1b5bdca..131db89d8 100644
--- a/ipatests/test_integration/base.py
+++ b/ipatests/test_integration/base.py
@@ -98,17 +98,19 @@ class IntegrationTest(object):
try:
cls.uninstall()
finally:
- del cls.logs_to_collect
del cls.master
del cls.replicas
del cls.clients
@classmethod
def uninstall(cls):
+ cls.collect_log(cls.master, '/var/log/ipaserver-uninstall.log')
cls.master.run_command(['ipa-server-install', '--uninstall', '-U'])
for replica in cls.replicas:
+ cls.collect_log(replica, '/var/log/ipaserver-uninstall.log')
replica.run_command(['ipa-server-install', '--uninstall', '-U'])
for client in cls.clients:
+ cls.collect_log(replica, '/var/log/ipaclient-uninstall.log')
client.run_command(['ipa-client-install', '--uninstall', '-U'])
@classmethod