Closed
Bug 505545
Opened 15 years ago
Closed 15 years ago
Need two test IMAP accounts for Lightning Test Automation
Categories
(Mozilla Messaging Graveyard :: Server Operations, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: cmtalbert, Unassigned)
References
(Depends on 1 open bug)
Details
Hello,
we'd like to have two test IMAP accounts for Lightning test automation. These can be Courier IMAP accounts.
We don't really care what server they use as long as it is NOT zimbra.
Thanks,
Clint
Updated•15 years ago
|
Component: General → Server Operations
Product: Thunderbird → Mozilla Messaging
QA Contact: general → server-ops
Version: Trunk → other
Comment 1•15 years ago
|
||
I don't think those accounts should be usable by the public. They could be used as spam accounts. It's kinda hard to implement something special. What about a local server running on the client machine which runs the test?
I can vague remember that Joshua played around with a test newsgroup server. Something similar we would need for tests. Isn't there something already available for mochitests?
Comment 2•15 years ago
|
||
Mochitests have a http server (and xpcshell tests and a few others).
MailNews has fake servers. See https://developer.mozilla.org/en/MailNews_fakeserver for more details (we have IMAP/POP/NNTP/SMTP). We currently have these hooked up to xpcshell tests.
A fake server is definitely a good stand-alone way of testing and having reproducable results and means we don't have to expose accounts to everyone.
I am thinking about looking at hooking these up to mozmill tests. There are two ways we can potentially do that and I'm not quite sure which route we will take yet - I'm currently planning on looking at hooking the httpd server up to our tests first as an experiment to see how it operates.
See https://wiki.mozilla.org/User:Standard8/Thunderbird_Automated_Tests_Planning#MozMill_and_Leak_.26_bloat_tests for my current plans.
Comment 3•15 years ago
|
||
(In reply to comment #2)
> yet - I'm currently planning on looking at hooking the httpd server up to our
> tests first as an experiment to see how it operates.
FYI: The httpd server is already included into Mozmill. It works fine and we already have some tests in our repository.
Comment 4•15 years ago
|
||
(In reply to comment #1)
> I don't think those accounts should be usable by the public. They could be used
> as spam accounts. It's kinda hard to implement something special. What about a
> local server running on the client machine which runs the test?
That's correct. Typically, these kind of live test accounts are for people, and they can keep the credentials secret. In the case of an automated test framework, the credentials would have to be in source control, and be opened up to the world, since anybody could run these tests and expect them to function.
Comment 5•15 years ago
|
||
(In reply to comment #1)
> I can vague remember that Joshua played around with a test newsgroup server.
> Something similar we would need for tests. Isn't there something already
> available for mochitests?
As Standard8 mentioned, we now have SMTP, POP, IMAP, and NNTP implementations (in rough order of degree of completeness). The network people also have a very functional HTTP server which can probably be extended to provide a CalDav implementation (if Calendar folks haven't already done that).
(In reply to comment #0)
> we'd like to have two test IMAP accounts for Lightning test automation. These
> can be Courier IMAP accounts.
>
> We don't really care what server they use as long as it is NOT zimbra.
Since you mention Courier versus Zimbra, I presume you require certain IMAP functionality which is probably yet unimplemented; may I ask what it is?
Comment 6•15 years ago
|
||
(In reply to comment #5)
> Since you mention Courier versus Zimbra, I presume you require certain IMAP
> functionality which is probably yet unimplemented; may I ask what it is?
I believe this was only because "Zimbra does some auto-detection of IMIP messages and will automatically add them to the associated calendar, which will mess up our tests."
From mozmill tests's point of view as long as there's an email account that can be used for both sending and receiving within UI it should be fine.
Comment 7•15 years ago
|
||
See bug 500753 for ability to use fakeserver from mozmill.
(In reply to comment #7)
> See bug 500753 for ability to use fakeserver from mozmill.
Cool, we will try that approach so we don't have to encode real mailserver accounts into mozmill tests. I'm going to close this bug as WFM pending investigation into that.
You need to log in
before you can comment on or make changes to this bug.
Description
•