URL: https://github.com/freeipa/freeipa/pull/710
Author: Rezney
 Title: #710: [ipatests] - added krb5kdc.log to pytest logging
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/710/head:pr710
git checkout pr710
From 7af2789ecc4d9995bb0a50a7b34752b7ca40679d Mon Sep 17 00:00:00 2001
From: Michal Reznik <mrez...@redhat.com>
Date: Wed, 12 Apr 2017 16:28:59 +0200
Subject: [PATCH] [ipatests] - added krb5kdc.log to pytest logging

KRB5KDC_LOG = '/var/log/krb5kdc.log' added to paths
host.collect_log(paths.KRB5KDC_LOG) added to tasks.py

Signed-off-by: Michal Reznik <mrez...@redhat.com>
---
 ipaplatform/base/paths.py                    | 1 +
 ipatests/pytest_plugins/integration/tasks.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py
index 070d3ff..ad41814 100644
--- a/ipaplatform/base/paths.py
+++ b/ipaplatform/base/paths.py
@@ -314,6 +314,7 @@ class BasePathNamespace(object):
     IPASERVER_UNINSTALL_LOG = "/var/log/ipaserver-uninstall.log"
     IPAUPGRADE_LOG = "/var/log/ipaupgrade.log"
     KADMIND_LOG = "/var/log/kadmind.log"
+    KRB5KDC_LOG = "/var/log/krb5kdc.log"
     MESSAGES = "/var/log/messages"
     VAR_LOG_PKI_DIR = "/var/log/pki/"
     TOMCAT_TOPLEVEL_DIR = "/var/log/pki/pki-tomcat"
diff --git a/ipatests/pytest_plugins/integration/tasks.py b/ipatests/pytest_plugins/integration/tasks.py
index 1705e25..172f5b8 100644
--- a/ipatests/pytest_plugins/integration/tasks.py
+++ b/ipatests/pytest_plugins/integration/tasks.py
@@ -77,6 +77,7 @@ def setup_server_logs_collecting(host):
 
     # kerberos related logs
     host.collect_log(paths.KADMIND_LOG)
+    host.collect_log(paths.KRB5KDC_LOG)
 
     # httpd logs
     host.collect_log(paths.VAR_LOG_HTTPD_ERROR)
-- 
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

Reply via email to