forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit11e1577
committed
Simplify TAP tests of kerberos with expected log file contents
The TAP tests of kerberos rely on the logs generated by the backend tocheck various connection scenarios. In order to make sure that a giventest does not overlap with the log contents generated by a previoustest, the test suite relied on a logic with the logging collector and arotation of the log files to ensure the uniqueness of the log generatedwith a wait phase.Parsing the log contents for expected patterns is a problem that hasbeen solved in a simpler way by PostgresNode::issues_sql_like() wherethe log file is truncated before checking for the contents generated,with the backend sending its output to a log file given by pg_ctlinstead. This commit switches the kerberos test suite to use such amethod, removing any wait phase and simplifying the whole logic,resulting in less code. If a failure happens in the tests, the contentsof the logs are still showed to the user at the moment of the failurethanks to like(), so this has no impact on debugging capabilities.I have bumped into this issue while reviewing a different patch setaiming at extending the kerberos test suite to check for multiplelog patterns instead of one now.Author: Michael PaquierReviewed-by: Stephen Frost, Bharath RupireddyDiscussion:https://postgr.es/m/YFXcq2vBTDGQVBNC@paquier.xyz1 parent595b9cb commit11e1577
1 file changed
+5
-22
lines changedLines changed: 5 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
173 |
| - | |
174 | 173 |
| |
175 |
| - | |
176 |
| - | |
177 | 174 |
| |
178 | 175 |
| |
179 | 176 |
| |
| |||
212 | 209 |
| |
213 | 210 |
| |
214 | 211 |
| |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
| 212 | + | |
233 | 213 |
| |
234 | 214 |
| |
235 | 215 |
| |
236 | 216 |
| |
237 | 217 |
| |
| 218 | + | |
| 219 | + | |
| 220 | + | |
238 | 221 |
| |
239 | 222 |
| |
240 | 223 |
| |
|
0 commit comments
Comments
(0)