51 Commits

Author SHA1 Message Date
Hannes Magnusson
809e99d7b8 PHPC-174: Rename module registration, constants and so on to mongodb 2015-03-23 16:37:38 -07:00
Hannes Magnusson
dd16db9d50 PHPC-180: Fix limited batch import
Also fixed cache mtime debug check :)
2015-03-16 22:49:44 -07:00
Hannes Magnusson
823864e588 PHPC-180: Cache the fixtures
Don't be regenerating the fixtures all the time, is super slow.
We now store them in /tmp/PHONGO-FIXTURES.json and read it from there,
as long as its mtime is newer then the fixtures-users.inc

Since we are caching these, bump the generated count to 1024 to force few roundtrips
2015-03-16 22:25:21 -07:00
Hannes Magnusson
3efb11c140 PHPC-180: Rename constant and pass the cleanup uri explicitly
- Use the new connection string constant that includes auth
- Call the cleanup routines explicitly when needed
2015-03-16 20:30:15 -07:00
Hannes Magnusson
4f693030b9 PHPC-180: Replace this Orchestration wrapper with significantly simpler code
We no create a /tmp/PHONGO-SERVERS.json file upon launching the servers
which stores the server IDs and connection string (including auth).
This makes it much faster to look up the available servers
2015-03-16 20:28:39 -07:00
Hannes Magnusson
f4ff765cba Fix tests for MongoDB 3.0.0 2015-03-04 13:45:15 -08:00
Hannes Magnusson
4ddcd0ad6a Simplify debug logging logic when running tests standalone 2015-03-03 10:24:03 -08:00
Hannes Magnusson
457b6452fa PHPC-165: Rename WriteBatch to BulkWrite 2015-02-20 15:05:29 -08:00
Hannes Magnusson
4acca269c2 This is a Manager, not MongoClient 2015-02-19 13:59:50 -08:00
Hannes Magnusson
a9823e706f Ignore me. Trim trailing space
This has been annoying me for a long time, especially the '<?php '
2015-02-19 13:57:58 -08:00
Hannes Magnusson
dad5d51b12 PHPC-107: Throw ExecutionTimeoutException for maxTimeMs 2015-02-19 13:15:04 -08:00
Hannes Magnusson
5c70087a53 PHPC-143: skip auth tests when the server configuration required isn't available 2015-01-28 11:10:21 -08:00
Hannes Magnusson
406ab7a821 PHPC-142: add 'list-servers' target to enumerate all running MO servers 2015-01-27 15:44:11 -08:00
Hannes Magnusson
031a8dac1e PHPC-140: var_dump()ing WriteConcernError and WriteError 2015-01-27 14:18:29 -08:00
Hannes Magnusson
ea23e5d3fe PHPC-128: MO presets directory needs to be configurable
various other travis fixes, skipping etc
2015-01-06 21:56:43 -08:00
Hannes Magnusson
0f73eaa29c PHPC-128: if there is no cleanup uri then skipit 2015-01-06 21:19:00 -08:00
Hannes Magnusson
1c33f18545 PHPC-128: ping should be fast 2015-01-06 20:30:53 -08:00
Hannes Magnusson
d6ceb3be0c PHPC-128: Fix running tests on travis
We no longer require Mongo Orchestration now.
You can export MONGODB_STANDALONE_URI environment variable with dsn to connect to.
2015-01-05 20:48:36 -08:00
Hannes Magnusson
af80d64193 PHPC-42: Implement root level (full document) ODM style serialization 2015-01-05 14:32:11 -08:00
Hannes Magnusson
bb5f45c313 PHPC-118: Use MongoDB\Driver namespace for phongo 2014-12-30 14:58:33 -08:00
Hannes Magnusson
6cba74790e If there is no error, pass null to avoid the type hint 2014-12-23 11:01:58 -08:00
Hannes Magnusson
0d303e63bf PHPC-113: WriteConcernError is just one error, not multiple
This allows to actually retrieve - and know about - the error
2014-12-23 11:01:32 -08:00
Hannes Magnusson
cdb39858b0 Simplify cli debugging 2014-12-23 11:01:32 -08:00
Hannes Magnusson
84f786bf47 PHPC-112: Sping up ReplicaSet 2014-12-22 16:03:55 -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
e2b0f5cfe9 PHPC-45: Orchestrate LDAP/PLAIN servers 2014-12-18 18:04:00 -08:00
Hannes Magnusson
ffa8006bce PHON-99: Add & Implement SSLConnectionException 2014-12-17 11:52:39 -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
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
db4ceec1b6 Improve exception testing 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
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
d6f181710f Use Faker to create user data fixtures 2014-10-16 16:02:26 -04:00
Jeremy Mikola
ec30b7dccf Use require_once in skip test includes 2014-10-16 16:02:26 -04:00
Jeremy Mikola
426976c62a Use "phongo_test" as default test database 2014-10-16 16:02:26 -04:00
Jeremy Mikola
35067cf017 Use preg_replace() for generating collection name from test file
This builds on what already existed in the current driver and adds the ".skip" removal. It also replaces hyphens with underscores to ensure that the collection is easy to access from the shell.
2014-10-16 16:02:26 -04:00
Jeremy Mikola
7f1e190c95 Clean up hex_dump() source and add citation 2014-10-16 16:02:26 -04:00
Jeremy Mikola
5d6052e884 PHP-1142: Dump WriteResult object in write tests 2014-09-29 11:37:47 -04:00
Hannes Magnusson
173310ee7a api changes 2014-07-16 17:59:24 +00:00
Hannes Magnusson
4590a66c59 Touch up WriteResult as return value 2014-07-11 07:31:22 +00:00
Hannes Magnusson
c4ebabeb17 Fix calling continue in global scope 2014-07-08 01:05:18 +00:00
Hannes Magnusson
ca8a7009d0 Batch test and fix skipping test during cleanup phase 2014-07-03 20:26:59 +00:00
Hannes Magnusson
a7effd93a0 Simplify testing 2014-07-02 20:48:59 +00:00