We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 720cf09 commit 24b87a0Copy full SHA for 24b87a0
1 file changed
sssd_test_framework/hosts/ipa.py
@@ -99,6 +99,20 @@ def features(self) -> dict[str, bool]:
99
100
return self._features
101
102
+ def setup(self) -> None:
103
+ """
104
+ Truncate existing IPA logs before each test to avoid need for restart.
105
106
+ self.conn.run(
107
108
+ set -ex
109
+ truncate --size 0 /var/log/dirsrv/*/*
110
+ truncate --size 0 /var/log/httpd/*
111
+ truncate --size 0 /var/log/ipa/*
112
+ truncate --size 0 /var/log/krb5kdc.log
113
114
+ )
115
+
116
def kinit(self) -> None:
117
"""
118
Obtain ``admin`` user Kerberos TGT.
0 commit comments