Closed
Bug 897323
Opened 12 years ago
Closed 7 years ago
[email/IMAP] re-enable running tests against real IMAP servers
Categories
(Firefox OS Graveyard :: Gaia::E-Mail, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: asuth, Unassigned)
References
Details
Bug 813411 got the fake-servers working happily, but we currently are no longer able to run the tests against real IMAP servers. (Previously, all IMAP tests were usually exclusively run against a dovecot server on localhost.)
In bug 813411 I tried hard to migrate all logic appropriate to th_real_imap_server.js (compare with th_fake_imap_server.js), but I inevitably will have made some small errors that will need to be addressed.
Reporter | ||
Comment 1•12 years ago
|
||
I talked with :lightsofapollo a little bit about our strategies related to real IMAP servers. Currently, th_real_imap_server.js (if it works, which :mcav discovered it doesn't) uses some internal mechanisms of the e-mail client to cause us to APPEND the message into the server. (We actually schedule a job/operation.)
I think we agreed that we want to stop doing that and just directly put the mesages in without touching the e-mail client back-end. The only servers I'm aware of that would have problems with us potentially establishing 2 connections are Yahoo (whose issues are unclear on that front, but last time I checked had serious APPEND issues) and at least some versions of UW-IMAP. Servers with issues should fail pretty obviously, so we can then just document not to run against those servers.
Comment 2•12 years ago
|
||
I was able to get most of the tests passing using a combination of the following tweaks:
https://github.com/mcav/gaia-email-libs-and-more/compare/fix-real-servers-bug-897323?expand=1
and my pending patch for bug 901926:
https://github.com/mozilla-b2g/gaia-email-libs-and-more/pull/238/files
8 tests still fail with those patches (some from each of [test_compose, test_mutation, test_imap_general, and test_imap_internals]), so it's not a fix for this bug, but I'm including it here for reference in case it's helpful.
Comment 3•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•