forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf32be99
committed
Fix failures in SSL tests caused by out-of-tree keys and certificates
This issue is environment-sensitive, where the SSL tests could fail invarious way by feeding on defaults provided by sslcert, sslkey,sslrootkey, sslrootcert, sslcrl and sslcrldir coming from a local setup,as of ~/.postgresql/ by default. Horiguchi-san has reported twofailures, but more advanced testing from me (aka inclusion of garbageSSL configuration in ~/.postgresql/ for all the configurationparameters) has showed dozens of failures that can be triggered in thewhole test suite.History has showed that we are not good when it comes to address suchissues, fixing them locally like indd87799, and such problems keepappearing. This commit strengthens the entire test suite to put an endto this set of problems by embedding invalid default values in all theconnection strings used in the tests. The invalid values are prefixedin each connection string, relying on the follow-up values passed in theconnection string to enforce any invalid value previously set. Notethat two tests related to CRLs are required to fail with certain pre-setconfigurations, but we can rely on enforcing an empty value insteadafter the invalid set of values.Reported-by: Kyotaro HoriguchiReviewed-by: Andrew Dunstan, Daniel Gustafsson, Kyotaro HoriguchiDiscussion:https://postgr.es/m/20220316.163658.1122740600489097632.horikyota.ntt@gmail.combackpatch-through: 101 parentdfefe38 commitf32be99
1 file changed
+15
-10
lines changedLines changed: 15 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
134 | 139 |
| |
135 |
| - | |
| 140 | + | |
136 | 141 |
| |
137 | 142 |
| |
138 | 143 |
| |
| |||
224 | 229 |
| |
225 | 230 |
| |
226 | 231 |
| |
227 |
| - | |
| 232 | + | |
228 | 233 |
| |
229 | 234 |
| |
230 | 235 |
| |
| |||
244 | 249 |
| |
245 | 250 |
| |
246 | 251 |
| |
247 |
| - | |
| 252 | + | |
248 | 253 |
| |
249 | 254 |
| |
250 | 255 |
| |
| |||
275 | 280 |
| |
276 | 281 |
| |
277 | 282 |
| |
278 |
| - | |
| 283 | + | |
279 | 284 |
| |
280 | 285 |
| |
281 | 286 |
| |
| |||
299 | 304 |
| |
300 | 305 |
| |
301 | 306 |
| |
302 |
| - | |
| 307 | + | |
303 | 308 |
| |
304 | 309 |
| |
305 | 310 |
| |
| |||
319 | 324 |
| |
320 | 325 |
| |
321 | 326 |
| |
322 |
| - | |
| 327 | + | |
323 | 328 |
| |
324 | 329 |
| |
325 | 330 |
| |
| |||
335 | 340 |
| |
336 | 341 |
| |
337 | 342 |
| |
338 |
| - | |
| 343 | + | |
339 | 344 |
| |
340 | 345 |
| |
341 | 346 |
| |
| |||
390 | 395 |
| |
391 | 396 |
| |
392 | 397 |
| |
393 |
| - | |
| 398 | + | |
394 | 399 |
| |
395 | 400 |
| |
396 | 401 |
| |
| |||
510 | 515 |
| |
511 | 516 |
| |
512 | 517 |
| |
513 |
| - | |
| 518 | + | |
514 | 519 |
| |
515 | 520 |
| |
516 | 521 |
| |
| |||
536 | 541 |
| |
537 | 542 |
| |
538 | 543 |
| |
539 |
| - | |
| 544 | + | |
540 | 545 |
| |
541 | 546 |
| |
542 | 547 |
| |
|
0 commit comments
Comments
(0)