80 Commits

Author SHA1 Message Date
Andreas Braun
5e53ac9aab PHPC-1430: Deprecate obsolete driver options 2019-10-25 10:45:51 +02:00
Jeremy Mikola
94a12cd71d Fix undefined var if throws() fails to catch 2019-10-24 11:03:32 -04:00
Andreas Braun
d5e077928d PHPC-1435: Fix test checking invalid argument values 2019-08-29 10:44:57 -04:00
Andreas Braun
201acd92f4 PHPC-1290: Update sharded test clusters to have multiple mongoses
This is necessary because session pinning doesn't work when connected to a single mongos node
2019-08-28 20:10:47 +02:00
Andreas Braun
5ad804ac21 PHPC-1290: Add tests for server selection in sharded transactions 2019-08-28 20:10:47 +02:00
Andreas Braun
ef16f97f6c PHPC-1288: Add checks for conflicting TLS options 2019-08-28 07:34:07 +02:00
Andreas Braun
804f383aea PHPC-1382: Allow applications to set maxTimeMS for commitTransaction 2019-08-21 19:30:29 +02:00
Jeremy Mikola
b5193bef3d Make use of use statements 2019-05-14 12:49:24 -04:00
Derick Rethans
603e6651c0 Let it set it's own path, so that we don't run into /tmp size issues 2019-02-14 15:35:31 -05:00
Derick Rethans
a5968f2b58 Change location of logs so that Evergreen's log collector picks them up 2019-02-14 15:35:31 -05:00
Derick Rethans
da45c7404b Merge branch 'v1.5' 2018-09-05 18:37:07 +01:00
Derick Rethans
8ece2a3a35 PHPC-1179: Reimplement tests that start servers with Mongo Orchestration 2018-09-05 18:36:44 +01:00
Derick Rethans
985a69f23d Merge branch 'v1.5' 2018-08-31 10:29:39 +01:00
Derick Rethans
1fdb468e36 PHPC-1209: is_replica_set() should return false when connected to RS primary in standalone mode 2018-08-31 10:29:18 +01:00
Derick Rethans
19db8d9521 Merge branch 'v1.5' 2018-08-15 11:20:53 +01:00
Derick Rethans
a6544e1f11 PHPC-1178: Reimplement tests that load data fixtures 2018-08-14 14:30:33 +01:00
Derick Rethans
c80778a153 PHPC-1173: Reimplement replica set seedlist tests 2018-08-10 11:26:42 +01:00
Derick Rethans
3678fa5236 PHPC-1184: Add alternative topologies to Travis 2018-07-16 10:30:39 +01:00
Derick Rethans
b172a20c31 PHPC-1140: Implement Transactions specification 2018-06-19 14:47:29 +01:00
Jeremy Mikola
014f2b6435 Create append_uri_option() helper function
This removes previous assumptions about the structure of the URI string.
2018-05-02 16:04:09 -04:00
Jeremy Mikola
b4062f880c PHPC-1113: Replace CLEANUP() with skip function 2018-05-02 16:04:08 -04:00
Jeremy Mikola
55e3341493 PHPC-1113: Replace NEEDS('STANDALONE_X509') with skip function 2018-05-02 16:04:08 -04:00
Jeremy Mikola
8768f548b4 PHPC-1113: Replace NEEDS('STANDALONE_AUTH') with skip function 2018-05-02 16:04:08 -04:00
Jeremy Mikola
38405a7f19 PHPC-1113: Replace TESTCOMMANDS() with skip function 2018-05-02 16:04:08 -04:00
Jeremy Mikola
fe52b484be PHPC-1113: Replace NEEDS_ATLEAST_MONGODB_VERSION() with skip function 2018-05-02 16:04:07 -04:00
Jeremy Mikola
6960868ab7 PHPC-1113: Replace NEEDS_STORAGE_ENGINE() with skip function 2018-05-02 16:04:07 -04:00
Jeremy Mikola
cf6aa41516 PHPC-1113: Replace NEEDS_SSL() with skip function 2018-05-02 16:04:07 -04:00
Jeremy Mikola
8a83606e9b PHPC-1113: Replace NEEDS_CRYPTO() with skip function 2018-05-02 16:04:07 -04:00
Jeremy Mikola
f4cf0fe3a0 PHPC-1113: Use common URI env var in basic/skipif includes 2018-05-02 16:04:07 -04:00
Jeremy Mikola
2ecee506b4 PHPC-1100: Require SSL or crypto as needed in tests
This addresses test failures when the driver is compiled without SSL.
2018-01-23 09:25:44 -05:00
Jeremy Mikola
83f333065e LibreSSL cannot extract username subject from X509 certs 2018-01-22 12:01:47 -05:00
Derick Rethans
d0d3cc7f96 Ensure these tests only run with wiredTiger engine 2018-01-12 11:55:41 +00:00
Derick Rethans
1e06f3428f Replace check for 'TRAVIS' with MongoDB server version check 2018-01-12 11:55:41 +00:00
Jeremy Mikola
58324ad627 PHPC-992: Rename extended JSON functions to[Canonical|Relaxed]ExtendedJSON() 2017-08-10 12:56:47 -04:00
Jeremy Mikola
65f5091010 PHPC-941: Add MongoDB\BSON\toCanonicalJSON() and toRelaxedJSON()
In CDRIVER-2208, bson_as_json() (used by toJSON()) was reverted to its original output format. Canonical and relaxed extended JSON are now produced by bson_as_canonical_json() and bson_as_relaxed_json(), respectively. This commit removes toExtendedJSON() (added in 980f1fb01a) in favor of the new functions.

Implementations for the BSON functions have been moved to their own file, which is consistent with what we're doing for the APM subscriber functions.
2017-07-28 13:30:06 -04:00
Derick Rethans
611b9f2fc7 PHPC-941: Use toExtendedJSON() for BSON corpus tests 2017-04-07 14:54:54 -04:00
Jeremy Mikola
56f3a9da74 PHPC-714: Script to convert BSON corpus tests 2017-01-13 15:05:41 -05:00
Jeremy Mikola
7f485f921e PHPC-761: Tests can rely on MongoDB\BSON namespace 2016-08-05 14:06:58 -04:00
Jeremy Mikola
44ee3a346a PHPC-450: failReceivedGetmore does not support getMore commands
The fail point used in this test does not yet support 3.2's getMore command, so this must be run on 3.0 (or earlier). See: SERVER-21831

This change also splits the test into query/command variants, corrects the title (which was apparently copied from cursor-getmore-004.phpt), and removes the use of data fixtures (small documents inserted within the test work just fine for its purposes).
2015-12-10 12:16:36 -05:00
Derick Rethans
206ea284ab This code has changed in 3.2, and make the error message clear 2015-12-08 16:49:54 +00:00
Jeremy Mikola
52dfd6b2d2 PHPC-444: Support options array in BulkWrite and executeInsert() 2015-10-15 15:44:17 -04:00
Jeremy Mikola
69bff6b039 Use versioned URI for mongo-orchestration 2015-10-01 14:22:19 -04:00
Jeremy Mikola
c682fd3a86 Increase mongo-orchestration HTTP timeout 2015-10-01 14:21:54 -04:00
Derick Rethans
59b8ea09cc Better messages for when things go wrong with exceptions 2015-09-22 11:01:57 -04:00
Jeremy Mikola
b1e882eeb0 Fix str_replace() newline replacement
Fixes e333fc0357
2015-08-19 13:47:40 -04:00
Jeremy Mikola
e333fc0357 Strip newlines from exception messages for more concise failures 2015-08-14 12:07:23 -04:00
Derick Rethans
fdfbdb1308 Added the error message to the failure cases.
This makes it much easier to debug what goes wrong, en-masse.
2015-08-14 11:59:46 -04:00
Hannes Magnusson
321ab56138 Skip test when not using the test vms 2015-08-03 13:57:22 -07:00
Jeremy Mikola
888b5dc56e PHP 5.3 compatibility for tools.php 2015-07-29 11:24:43 -04:00
Jeremy Mikola
194bbbd164 PHPC-311: Rename from/toArray() functions to from/toPHP() 2015-07-14 19:52:24 -04:00