Add automated tests for Thunderbird querying LDAP and LDAP/SSL servers, and S/MIME certificate retrieval
Categories
(MailNews Core :: LDAP Integration, enhancement)
Tracking
(thunderbird_esr78 wontfix)
| Tracking | Status | |
|---|---|---|
| thunderbird_esr78 | --- | wontfix |
People
(Reporter: KaiE, Assigned: benc)
References
Details
(Keywords: leave-open)
Attachments
(1 file, 2 obsolete files)
|
6.98 KB,
patch
|
benc
:
review+
|
Details | Diff | Splinter Review |
We need to be able to discover regressions that cause connections to LDAP and LDAP/SSL servers to stop working. We should ensure that the SSL connections include servers that have a certificate that also references an OCSP server.
| Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Geoff added an LDAP mock server in bug 1608304. Could be a building block here.
| Assignee | ||
Comment 2•5 years ago
|
||
This patch adds a basic unit test for performing an LDAP query (non TLS). Not exactly comprehensive, but it should be a good template for adding tests to cover whatever bugs we encounter from here on.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
Just some notes on SSL/TLS tests:
- The core of my fake LDAP server is handled in
mailnews/test/fakeserver/Binaryd.jsm. - Looks like a there's nice easy tls server example to follow in
netwerk/test/unit/test_be_conservative_error_handling.js(seestartServer()). - The listener callback
nsILDAPMessageListener::onLDAPError()is where the security errors will be caught. So, it'd be easy to add another PromiseListener (see patch in comment 2) which catches certificate errors. - Want a test to make sure a bad server cert produces a reasonable error code.
- Want a test to make sure connecting to a server with self-signed cert can be caught and recovered from (by adding an exception and retrying).
- Want a test to make sure we reject un-secured connections, if the user has specified they only want secure connections! (not sure the LDAP code even supports this TBH).
Same goes for the other protocols - IMAP, SMTP, NNTP etc...
Comment 4•5 years ago
|
||
Updated•5 years ago
|
| Assignee | ||
Comment 5•5 years ago
|
||
Take two, with all the suggestions.
Also tweaked the modeline. Turns out this code is actually Javascript rather than C++!
Comment 6•5 years ago
•
|
||
| Assignee | ||
Comment 7•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/55e3510ef79e
Add a unit test for basic LDAP query. r=mkmelin
Updated•3 years ago
|
| Assignee | ||
Updated•3 months ago
|
Description
•