Hannes Magnusson
809e99d7b8
PHPC-174: Rename module registration, constants and so on to mongodb
2015-03-23 16:37:38 -07:00
Hannes Magnusson
bb02c4861b
Test for PHPC-186
2015-03-23 13:53:33 -07:00
Hannes Magnusson
8b1624b282
PHPC-189: Implement Manager->getServers()
2015-03-20 15:02:57 -07:00
Hannes Magnusson
4da65af278
PHPC-188: Populate MongoDB\Driver\Server
2015-03-20 14:14:35 -07:00
Hannes Magnusson
5f8d990b53
PHPC-24 PHPC-77 PHPC-69 Provide a functioning Server object
2015-03-20 11:33:46 -07:00
Hannes Magnusson
3bb0c8b6cb
In SDAM this is forbidden and throws exception
2015-03-19 14:20:44 -07:00
Hannes Magnusson
9d78b52287
Show the response when the test fails
2015-03-19 14:20:44 -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
b32ebba8a2
PHPC-180: No need to sleep anything, we get a fresh connection in next test
2015-03-16 22:37:16 -07:00
Hannes Magnusson
70a184961f
PHPC-180: We now load 1024 users
2015-03-16 22:28:56 -07:00
Hannes Magnusson
ebffad28a4
PHPC-180: We now generate 1024 users, only load the first 100
2015-03-16 22:28:49 -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
1228956719
Surpress timezone warning by adding it to the ini
2015-03-16 22:24:40 -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
Jeremy Mikola
ae0219d69e
PHPC-168: Implement WriteResult::isAcknowledged()
...
We copy the write concern struct rather than store an is_acknowledged boolean, which allows us to include the write concern in the debug output. Down the line, we may decide to implement a getWriteConcern() method to help users in handling/logging write concern errors.
2015-03-13 02:26:51 -04:00
Jeremy Mikola
9298ad8153
PHPC-170: Don't set write concern on bulk unnecessarily
2015-03-13 02:26:51 -04:00
Jeremy Mikola
70715516b5
PHPC-177: Include all fields in WriteConcern debug output
...
This mainly removes logic where no fields were included in the debug output if "w" was equal to MONGOC_WRITE_CONCERN_W_DEFAULT.
Although the "wmajority" boolean exists, we can still report the actual "w" value, which will be sent to the server.
2015-03-13 02:26:51 -04:00
Jeremy Mikola
a56939385e
Remove unnecessary Manager and apply EXPECTF patterns
2015-03-12 19:48:01 -04:00
Hannes Magnusson
9f5be0967f
PHP5.6 change serveral TLS verfication defaults
2015-03-11 09:53:55 -07:00
Hannes Magnusson
f4ff765cba
Fix tests for MongoDB 3.0.0
2015-03-04 13:45:15 -08:00
Hannes Magnusson
dce9ada024
PHPC-129: Fix tests for HIPPO can't throw InvalidArgumentException on argument errors
2015-03-04 13:44:21 -08:00
Hannes Magnusson
4ddcd0ad6a
Simplify debug logging logic when running tests standalone
2015-03-03 10:24:03 -08:00
Hannes Magnusson
5a4778f928
PHPC-163: Throw BulkWriteException on BulkWrite failure
...
For execute[Insert|Update|Delete]() we unroll the BulkWrite exception
and throw the inner errors.
Note: WriteConcern failure now throws WriteConcernException!
2015-03-03 10:21:37 -08:00
Hannes Magnusson
633af554df
PHPC-166: Disable (un)serializing of phongo objects
2015-02-27 13:53:59 -08:00
Hannes Magnusson
457b6452fa
PHPC-165: Rename WriteBatch to BulkWrite
2015-02-20 15:05:29 -08:00
Hannes Magnusson
4cf9536f96
PHPC-164: Throw MongoDB\Driver\ConnectionTimeoutException
2015-02-19 15:02:49 -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
713dc5a78c
PHPC-159: memleak on failed path resolving
2015-02-18 12:01:47 -08:00
Hannes Magnusson
ced7c408f3
PHPC-158: Split queryFlags bitmask option into specific options
2015-02-18 11:46:10 -08:00
Hannes Magnusson
481600d990
PHPC-157: Consolidate CommandResult and QueryResult classes
2015-02-18 11:09:36 -08:00
Hannes Magnusson
9e4277e402
PHPC-157: QueryResult and CommandResult are now Result
2015-02-18 11:00:07 -08:00
Hannes Magnusson
ab1998ff94
PHPC-157: Renamed getResponseDocument() to toArray()
2015-02-18 10:47:50 -08:00
Hannes Magnusson
0357824212
PHPC-155: WriteConcernError->getInfo() can be scalar
2015-02-18 09:56:37 -08:00
Hannes Magnusson
d8506faa31
PHPC-154: WriteError can have info field
2015-02-18 09:52:47 -08:00
Hannes Magnusson
b93ad4f1e1
PHPC-148: var_dump()ing ObjectID should show the ObjectID
2015-01-29 10:55:38 -08:00
Hannes Magnusson
9b5cd34b90
PHPC-144: MO first-user changes
...
MO now creates an initial user that collides with the user and
certificate we used for this.
MO really needs to generate a different internal user as most people
will do as we did - take the user+cert from mongo jstests - rather then
mucking around and create the chain ourself.
To work around this, we create a bogus user (to trigger MO to create
its user) but use the internal MO user as it is the one we want
2015-01-29 10:29:58 -08:00
Hannes Magnusson
557ed02006
PHPC-146: ReadPreferences swapped
2015-01-28 13:46:22 -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
7626368622
PHPC-139: var_dump()ing WriteBatch
2015-01-27 13:23:42 -08:00
Hannes Magnusson
4b8ef30fd1
PHPC-138: var_dump()ing WriteConcern
2015-01-27 11:56:15 -08:00
Hannes Magnusson
4a20c63e1c
PHPC-138: var_dump()ing ReadPreference
2015-01-27 11:55:43 -08:00
Hannes Magnusson
2acbc5bd2c
PHPC-137: var_dump()ing CursorID should show the Cursor ID
2015-01-26 16:50:29 -08:00
Hannes Magnusson
770c2b579f
PHPC-136: var_dump() CommandResult and QueryResult
2015-01-09 16:00:08 -08:00
Hannes Magnusson
1c31f2f934
PHPC-133: var_dump()ing cursor
2015-01-09 15:36:11 -08:00
Hannes Magnusson
8c89c1c950
PHPC-135: Fix memory leak var_dump()ing Command
2015-01-09 12:47:14 -08:00