Commit Graph

108 Commits

Author SHA1 Message Date
Robert Hafner
ef5f76d352 Added timezone and corrected path data
Adding a timezone prevents errors on misconfigured systems when
running, and the path correction automates the running of the dovecot
testing package between tests.
2014-02-27 00:11:19 -08:00
Robert Hafner
a2b41cd82c Added test to prevent fatal error in certain error conditions 2014-02-27 00:09:56 -08:00
Robert Hafner
223be18517 Telling composer to use any of the 1.x line of the Dovecot Test Package 2014-01-20 15:37:47 -08:00
Robert Hafner
30b3871e3d Switching back to dev-master for testing 2014-01-20 15:28:21 -08:00
Robert Hafner
4432bd110a Merge pull request #33 from tedivm/testing_update
Separate Mail Server Setup into Development Package
2014-01-20 15:04:10 -08:00
Robert Hafner
8b2a3c9647 Pinned Fetch to a specific stable version of the test suite. 2014-01-20 14:59:01 -08:00
Robert Hafner
4f2c2662e6 Updated vendor path used by travis for the SetupEnvironment script 2014-01-19 00:54:07 -08:00
Robert Hafner
550f3b62e0 Updated Fetch to use the DovecotTesting repository
Rather than ship with all of these files I’ve separated out the server
provisioning code from this repository.
2014-01-19 00:51:55 -08:00
Robert Hafner
1ff3441020 Update README.md 2014-01-14 00:32:45 -08:00
Robert Hafner
c61e6f41f9 Removed autoloader reference 2013-12-18 17:02:34 -08:00
Robert Hafner
9cc77d1d14 Merge pull request #31 from tedivm/Marketing
Updated readme
2013-12-18 16:59:50 -08:00
Robert Hafner
cb15c2f408 Updated readme 2013-12-18 16:59:03 -08:00
Robert Hafner
acfc1c0890 Merge pull request #30 from tedivm/testing
Complete Rework of the Test Suite
2013-12-18 16:22:01 -08:00
Robert Hafner
7c9bc1d34f Lots more tests! 2013-12-18 16:16:33 -08:00
Robert Hafner
806572b869 Changed exception type 2013-12-18 16:16:20 -08:00
Robert Hafner
25342a4318 Rewrote "moveToMailbox" code to deal with some potential bugs
Basically if the server isn't in the same box as the message it causes
issues, so this switches to that box then back to where the server was.
2013-12-18 16:16:12 -08:00
Robert Hafner
0e38a10e97 Added comments 2013-12-18 14:32:32 -08:00
Robert Hafner
f0a4e29e3d Increased Dovecot's allowed connections for an individual IP address 2013-12-18 14:21:55 -08:00
Robert Hafner
47bfb26b34 Added tests for Expunge, getMailbox and setMailBox methods. 2013-12-18 14:21:33 -08:00
Robert Hafner
eda6cc65ab Improved error handling in Server class, added getMessageByUid method 2013-12-18 14:20:24 -08:00
Robert Hafner
0bbc02b006 Updated Message class to throw exception when passed nonexistant email ID 2013-12-18 14:19:39 -08:00
Robert Hafner
7af83a84db Added Message::getMessageBody tests, added better messages to existing assertions. 2013-12-11 23:57:25 -08:00
Robert Hafner
89efb38103 Removed unneeded cert
The current build script regenerates this each time, so it's no longer
needed.
2013-12-11 19:27:43 -08:00
Robert Hafner
4a6811a08c Added test suite for the Attachment class 2013-12-09 22:53:43 -08:00
Robert Hafner
fffa423429 Added additional Attachment test 2013-12-08 23:12:08 -08:00
Robert Hafner
59d5b8ffc8 Continued extended Message test suite 2013-12-08 22:48:50 -08:00
Robert Hafner
f35a06935d Killed first bug- Message class 'checkFlag' was returning wrong values if the message had been changed with setFlag
This was because the setFlag function was not setting the value stored
in the message object, just the one on the server.
2013-12-08 22:48:25 -08:00
Robert Hafner
68af0ad11f Added more tests for the Message class 2013-12-08 21:59:41 -08:00
Robert Hafner
83a8a899be Added Message test structure, as well as a few initial tests. 2013-12-08 18:31:27 -08:00
Robert Hafner
6ad9945817 Corrected mailbox name in test, as well as number of messages in main inbox 2013-12-08 17:17:07 -08:00
Robert Hafner
10ec1b6a97 Updated test messages
During testing I realized that the transfer of messages to the test
server did not actually occur in the right order, which made some test
results counter intuitive. I've reshuffled the messages around so
things will make more sense.
2013-12-08 17:16:44 -08:00
Robert Hafner
f7436eee00 Made the getServer function static 2013-12-05 23:42:50 -08:00
Robert Hafner
9c6a14134b Removed unfinished test 2013-12-05 23:04:25 -08:00
Robert Hafner
6d7f966a86 Continued fleshing out the Server tests 2013-12-05 23:01:53 -08:00
Robert Hafner
db1284d7e0 Updated code coverage to only include Fetch code 2013-12-05 18:01:02 -08:00
Robert Hafner
cfc04ab69b Another attempt to make travis ci like me. 2013-12-05 17:11:19 -08:00
Robert Hafner
3749e70fa1 Added new connection tests to the ServerTest class 2013-12-05 17:11:07 -08:00
Robert Hafner
e8477204a3 Making another attempt to deal with the ssl issue 2013-12-05 15:29:04 -08:00
Robert Hafner
aab81066cc Stopping/Starting Dovecot before moving ssl cert 2013-12-05 14:45:56 -08:00
Robert Hafner
b7b7d54966 Attempting to deal with Dovecot/Travis issue by supplying an ssl cert 2013-12-05 14:39:02 -08:00
Robert Hafner
662ae64b66 Attempting to see if updating apt-get will resolve build error 2013-12-05 14:24:09 -08:00
Robert Hafner
59dd786f2e Tell travis to run commands as root. 2013-12-05 14:08:32 -08:00
Robert Hafner
2adbb68a54 Updated SetupEnvironment to use TRAVIS_BUILD_DIR to identify paths 2013-12-05 14:06:51 -08:00
Robert Hafner
623461a926 Added travis.ci file 2013-12-05 14:01:18 -08:00
Robert Hafner
01f5ad02a8 Created initial working test suite
So far it just tests some flags (which it already did) and then tests
connecting to the imap server itself.

The Attachment and Message tests are just stubs right now and don't do
anything, but need those stubs to let the tests occur.
2013-12-05 13:57:34 -08:00
Robert Hafner
554c22a363 Added some useful output to the phpunit bootstrap file 2013-12-05 13:50:36 -08:00
Robert Hafner
bdfb20f610 Updated the phpunit bootstrapper to initialize the environment. 2013-12-05 12:13:25 -08:00
Robert Hafner
6e6d66ed87 Created environment setup wrapper script
This script makes setting up the environment for testing easier. It
detects that it's on travis and creates the appropriate setup right
there, or on personal machines uses vagrant. If vagrant is running is
skips the full setup and simply resets the mailbox for fast testing.
2013-12-04 23:36:48 -08:00
Robert Hafner
bcf57ce903 Updated autoloader to support test cases, and bootstrapper to support composer autoloader 2013-12-04 23:34:08 -08:00
Robert Hafner
e6eb65fbd5 Shuffled testing scripts out of Vagrant folder and into their own space. 2013-12-04 21:57:51 -08:00