summaryrefslogtreecommitdiff
path: root/src/leap/mail/imap/tests
AgeCommit message (Collapse)Author
2015-12-15[fix] dummy credentials for testsKali Kaneko
imap tests must be adapted, using a dummy credential checker.
2015-12-15[feat] credentials handling: use twisted.credKali Kaneko
2015-09-08[feature] improve getmail utilityKali Kaneko
So now it: - Accepts credentials in a file pointed by environment variable. - Allows to specify the mailbox to select as a command line flag. - Allows to select a given message by subject. For example: BITMASK_CREDENTIALS=/tmp/bm.secrets ./getmail --mailbox INBOX --subject 'test mail The two flags are case-insensitive. This is intended to be used as a helper in end-to-end tests. Getting a message by subject it's suboptimal, but I think it's good enough for our testing purposes right now. Related: #7427
2015-08-04[style] pep8 fixes + pep8 scriptKali Kaneko
2015-08-04[tests] Removed outdated testBruno Wagner
This test was not updated for a while and it doesn't make sense in this context, when we create acceptance tests we can make sure we cover this feature The issue for acceptance tests is: https://leap.se/code/issues/7341
2015-08-03[tests] Skipped tests that were not implementedBruno Wagner
Functionality that is not implemented should not fail, instead it should be skipped until it is implemented. Added a return to test_imap_store_fetch setup to make sure the deferred is being handled
2015-07-21Changed imap tests and messages assigned lambdas to functions because of pep8Bruno Wagner
2015-07-21Updated pep8 and fixed import and line break warningsBruno Wagner
2015-07-21Fixed all the pep8 warnings in the codeBruno Wagner
2015-07-13[tests] get REGRESSIONS_FOLDER from env varKali Kaneko
in order to start with a fresh folder each time. current test script has some troubles with dirty state.
2015-07-13[tests] add symlink to the nested sample fileKali Kaneko
2015-07-13[style] slightly more meaningful test module nameKali Kaneko
2015-07-13[debug] add some more debug info to the regressions scriptKali Kaneko
2015-03-30[bug] fix early append notificationKali Kaneko
There's a workaround for "slow" APPENDS to an inbox, and it is that we have a flag to allow returning early when JUST the mdoc (the meta-document) has been written. However, this was givin a problem when doing a FETCH right after an APPEND (with notify_just_mdoc=True) has been done. This commit fixes it by making the FETCH command first check if there's an ongoing pending write, and queueing itself right after the write queue has been completed. This fixes the testFullAppend regression. Releases: 0.4.0
2015-03-03[bug] Fix testExpunge testsKali Kaneko
this test was failing randomly because we were returning the deferred before all the documents were saved into soledad store. changed also the delete_msg deferred chaining for better readability. Releases: 0.9.0
2015-03-03[bug] Fix IllegalMailboxCreateKali Kaneko
We're raising the exception now, not a Failure. Releases: 0.9.0
2015-03-03[refactor] remove dead code in IMAP implementationKali Kaneko
while updating the tests, I found that IMAPMessageCollection was not actually being used: all the work is done in IMAPMailbox, using directly the MessageCollection instance. So, this extra level of abstraction was finally not used. Releases: 0.9.0
2015-03-03cast generator to list; change expected after renameKali Kaneko
2015-03-03pass date explicitely, fix partial_append testKali Kaneko
it is interpreted as "tags" otherwise.
2015-02-11lots of little fixes after meskio's reviewKali Kaneko
mostly having to do with poor, missing or outdated documentation, naming of confusing things and reordering of code blocks for improved readability.
2015-02-11tests: add link related to trial block with syncKali Kaneko
2015-02-11Refactor fetch into leap.mail.incoming IServiceRuben Pollan
2015-02-11patch cbSelect to accept deferreds for count*Kali Kaneko
2015-02-11Complete IMAP implementation, update testsKali Kaneko
2015-02-11Use mailbox uuidsKali Kaneko
The previous implementation is naive, since it imposes a burden when renaming mailboxes. We're using uuids in the local uid tables instead, which is more cryptic but way more efficient. * receive mbox uuid instead of name * use mailbox uuid in identifiers
2015-02-11tests for mail.mail module: MessageKali Kaneko
2015-02-11Serializable Models + Soledad AdaptorKali Kaneko
2015-02-11New keymanager async APIRuben Pollan
2015-02-11adapt to soledad 0.7 async APIKali Kaneko
2015-02-11specify not syncable shared dbKali Kaneko
2014-11-04Discover public key via attachmentRuben Pollan
2014-10-13Get keys from OpenPGP email headerRuben Pollan
2014-09-10add test for empty mailbox creationKali Kaneko
2014-09-03split tests in different modulesKali Kaneko
2014-09-03fix and migrate tests to trialKali Kaneko
We cannot use setUpClass when running tests with trial. But, after all, it's not *so* expensive to initialize a new soledad instance (since we'll be mostly using the memstore for the tests).
2014-08-21On the mac, the tempdir is not created at /tmp, so checking the tempdir ↵Bruno Wagner Goncalves
format instead
2014-02-20mail parsing performance improvementsKali Kaneko
Although the do_parse function is deferred to threads, we were actually waiting till its return to fire the callback of the deferred, and hence the "append ok" was being delayed. During massive appends, this was a tight loop contributing as much as 35 msec, of a total of 100 msec average. Several ineficiencies are addressed here: * use pycryptopp hash functions. * avoiding function calling overhead. * avoid duplicate call to message.as_string * make use of the string size caching capabilities. * avoiding the mail Parser initialization/method call completely, in favor of the module helper to get the object from string. Overall, these changes cut parsing to 50% of the initial timing by my measurements with line_profiler, YMMV.
2014-02-17select instead of examineKali Kaneko
2014-02-17long-due update to unittests!Kali Kaneko
So we're safe under the green lights before further rewriting. :)
2014-02-05minimal regression testsKali Kaneko
2014-01-30allow to pass file as argumentKali Kaneko
2014-01-30docstring fixesKali Kaneko
Also some fixes for None comparisons.
2014-01-28handle last_uid property in memory storeKali Kaneko
2014-01-26Allow passing user and mbox as parametersKali Kaneko
Increase default testing duration to 200 secs.
2014-01-26Script for reproducible imaptest runs.Kali Kaneko
2014-01-08add a quick message fetching utility for testsKali Kaneko
2014-01-08Second stage of the new year's storage rewrite.Kali Kaneko
* documents of only three types: * flags * headers * content * add algorithm for walking the parsed message tree. * treat special cases like a multipart with a single part. * modify add_msg to use the walk routine * modify twisted interfaces to use the new storage schema. * tests for different multipart cases * fix multipart detection typo in the fetch This is a merge proposal for the 0.5.0-rc3. known bugs ---------- Some things are still know not to work well at this point (some cases of multipart messages do not display the bodies). IMAP server also is left in a bad internal state after a logout/login.
2014-01-08tests infrastructure for multipartKali Kaneko
2014-01-08fix tests after rewriteKali Kaneko
2013-12-24Fix parsing of IMAP folder names (#4830).drebs