81 Commits

Author SHA1 Message Date
Hannes Magnusson 9c06e70328 PHPC-33: Implement X509 support via PHP streams 2014-12-22 11:50:12 -08:00
Hannes Magnusson 72ad6a8a44 PHPC-33: Add tests for X509
This test does not currently work due to bug in Mongo Orchestration:
https://github.com/10gen/mongo-orchestration/issues/159
2014-12-19 13:14:49 -08:00
Hannes Magnusson 6abfa11ea1 PHPC-104: Throw MongoDB\AuthenticationException on auth failure 2014-12-19 10:01:11 -08:00
Hannes Magnusson b0c41dbe57 Fix test titles 2014-12-19 09:52:42 -08:00
Hannes Magnusson dbfe578951 PHPC-31: Test for PLAIN authentication mechanism 2014-12-18 18:04:29 -08:00
Hannes Magnusson e2b0f5cfe9 PHPC-45: Orchestrate LDAP/PLAIN servers 2014-12-18 18:04:00 -08:00
Hannes Magnusson 95774b10d2 PHPC-101: throw MongoDB\DuplicateKeyException 2014-12-18 17:39:23 -08:00
Hannes Magnusson 499dc0e39d Enable test and fixit 2014-12-18 17:31:37 -08:00
Hannes Magnusson 0ba852057e PHON-85: Improve test
- Add certificate expiry example
- Make sure we can fix the error and reconnect
2014-12-17 13:10:11 -08:00
Hannes Magnusson ffa8006bce PHON-99: Add & Implement SSLConnectionException 2014-12-17 11:52:39 -08:00
Hannes Magnusson 6919b41267 PHON-22: New test to verify standard authentication
Note that there is a bug in Mongo Orchestration preventing this test
from working properly as the user cannot be created (no "localhost
exception")
2014-12-16 16:42:38 -08:00
Hannes Magnusson a07af2f9b7 PHON-23: Add test for connecting to SSL server 2014-12-16 16:42:04 -08:00
Hannes Magnusson abaed98f61 PHON-6: Split normal SSL and X509 servers 2014-12-16 16:37:32 -08:00
Hannes Magnusson d0079711d0 PHON-7: Trivial Monog Orchestration abstraction
->start("preset.json") # See scripts/presets/
->getURI("preset.json") # Get the MONGODB_URI
->stopAll() # Stops all running mongods
->stopId("SERVER-ID") # The 'id' key in preset.json
2014-12-16 15:42:22 -08:00
Hannes Magnusson 23bc48ce48 exit on failure - and include a greppable error
Makes it easier to run the phpt directly
2014-12-16 15:38:51 -08:00
Hannes Magnusson da8cb0bd3a PHON-91: Use the vm by default, allow it to be overridden by the environment variable 2014-12-16 13:12:31 -08:00
Hannes Magnusson b55ab728a9 return true on success 2014-12-16 12:09:28 -08:00
Hannes Magnusson a541690559 Use the MONGODB_URI constant 2014-12-16 12:09:28 -08:00
Hannes Magnusson 2d88ca250f PHON-5: Use Mongo Orchestration to manage MongoDB servers 2014-12-16 12:09:28 -08:00
Hannes Magnusson bbbda03d10 Seperate code from functions 2014-12-16 12:09:28 -08:00
Hannes Magnusson 659e9f9e6a PHP-1336: Use Cursor->getId(), not Cursor->getCursorId() 2014-12-12 15:54:57 -08:00
Hannes Magnusson 2dce5889e1 PHP-1181: Improve coverage for BSON\UTCDateTime 2014-12-12 15:51:55 -08:00
Hannes Magnusson f72261a3d2 PHP-1181: Improve coverage for BSON\Timestamp 2014-12-12 15:51:55 -08:00
Hannes Magnusson 26def595b6 PHP-1181: Improve coverage for BSON\Regex 2014-12-12 15:51:55 -08:00
Hannes Magnusson 646ca9b581 PHP-1181: Improve coverage for BSON\ObjectID 2014-12-12 15:51:55 -08:00
Hannes Magnusson db4ceec1b6 Improve exception testing 2014-12-12 15:51:55 -08:00
Hannes Magnusson b8ca3c5593 PHP-1181: uhm.. This is minkey test! 2014-12-12 15:51:55 -08:00
Hannes Magnusson 9e15ed347f PHP-1181: Increse BSON\Binary testcoverage 2014-12-12 15:51:55 -08:00
Hannes Magnusson 54a2e194ce PHP-1322: More renaming 2014-12-08 14:43:09 -08:00
Hannes Magnusson b5c3810070 PHP-1322 Rename count methods in WriteResults 2014-12-08 14:34:35 -08:00
Hannes Magnusson 6efcec44ba Remove unused command 2014-12-03 14:26:54 -08:00
Hannes Magnusson 8739a1f777 PHP-1195: Integers are now represented as int32, as long as they fit 2014-12-02 17:20:07 -08:00
Hannes Magnusson a0f2e15126 PHP-1296: Implement WriteConcerns 2014-11-26 14:04:30 -08:00
Hannes Magnusson c17001ac30 PHP-1295: Memory leak when generating ID for inserts 2014-11-26 13:37:09 -08:00
Hannes Magnusson bccdd2771f PHP-1294: Emtpy Query Result should still return QueryResult 2014-11-26 13:04:28 -08:00
Hannes Magnusson 27ae67c5e2 Fixed various memory leaks and compiler warnings 2014-11-21 17:30:58 -08:00
Hannes Magnusson 23bb9a63ff PHP-1189: Implement BSON regex type 2014-11-21 10:53:10 -08:00
Jeremy Mikola 76d49f792b PHP-1189: BSON Regex type 2014-11-21 10:05:29 -08:00
Hannes Magnusson f5b5d6ddef PHP-1187: Implement BSON binary type 2014-11-21 09:51:27 -08:00
Hannes Magnusson dfbef380a5 PHP-1188: Implement BSON code and code with scope types
NOTE: This type is not supported by Extended JSON :(
2014-11-20 17:33:10 -08:00
Hannes Magnusson 4a8b86c1a2 PHP-1191: Implement BSON timestamp type 2014-11-20 15:47:43 -08:00
Hannes Magnusson 2fddcd6e0a Fix test: Whoopsy. Missed the DONE section 2014-11-20 15:46:09 -08:00
Hannes Magnusson 057469c997 PHP-1194: Implement BSON MaxKey and MinKey types 2014-11-20 15:01:46 -08:00
Hannes Magnusson c439fbcc67 PHP-1190: Implement BSON\UTCDateTime 2014-11-19 17:07:13 -08:00
Hannes Magnusson 7636ed4e76 PHP-1185: Add more Cursor related methods 2014-11-19 17:05:10 -08:00
Hannes Magnusson 0d68cea77d Fixed PHP-1185: Implement Cursor class 2014-11-19 13:35:02 -08:00
Hannes Magnusson 5dc733469b PHP-1183: Implement default Iterator class for QueryResult & CommandResult 2014-11-19 12:55:38 -08:00
Hannes Magnusson 554c4105d1 Do not test the error messages from the server
The error message vary depending on the server version
2014-11-19 10:21:42 -08:00
Jeremy Mikola 4086691a3e PHP-1180: Create make target to install Composer dependencies (for tests)
Due to how the Makefile is generated, it's non-trivial to add the "composer" target as a dependency of "test". As a compromise, we'll skip tests which require unavailable dependencies.
2014-10-16 20:45:39 -04:00
Jeremy Mikola f24e900fca Functional tests for sorted queries 2014-10-16 16:02:26 -04:00