Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions tests/UnifiedSpecTests/UnifiedSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class UnifiedSpecTest extends FunctionalTestCase
* @var array<string, string>
*/
private static array $incompleteTestGroups = [
// Requires afterClusterTime on writes, pending libmongoc support (DRIVERS-3274)
'causal-consistency/causal consistency write commands include afterClusterTime' => 'afterClusterTime is not sent on writes pending libmongoc support (PHPLIB-1834, DRIVERS-3274)',
'causal-consistency/causal consistency bulkWrite include afterClusterTime' => 'afterClusterTime is not sent on writes pending libmongoc support (PHPLIB-1834, DRIVERS-3274)',
// Spec tests for named KMS providers depends on unimplemented functionality from UTF schema 1.18
'client-side-encryption/namedKMS' => 'UTF schema 1.18 is not supported (PHPLIB-1328)',
// Many load balancer tests use CMAP events and/or assertNumberConnectionsCheckedOut
Expand Down Expand Up @@ -86,6 +89,12 @@ class UnifiedSpecTest extends FunctionalTestCase
private static array $incompleteTests = [
// Many load balancer tests use CMAP events and/or assertNumberConnectionsCheckedOut
'load-balancers/monitoring events include correct fields: poolClearedEvent events include serviceId' => 'PHPC does not implement CMAP',
// Requires afterClusterTime on writes in transactions, pending libmongoc support (DRIVERS-3274)
'transactions/commit: reset session state commit' => 'afterClusterTime is not sent on writes pending libmongoc support (PHPLIB-1834, DRIVERS-3274)',
'transactions/commit: reset session state abort' => 'afterClusterTime is not sent on writes pending libmongoc support (PHPLIB-1834, DRIVERS-3274)',
'transactions/retryable-writes: increment txnNumber' => 'afterClusterTime is not sent on writes pending libmongoc support (PHPLIB-1834, DRIVERS-3274)',
'transactions-convenient-api/callback-aborts: withTransaction still succeeds if callback aborts and runs extra op' => 'afterClusterTime is not sent on writes pending libmongoc support (PHPLIB-1834, DRIVERS-3274)',
'transactions-convenient-api/callback-commits: withTransaction still succeeds if callback commits and runs extra op' => 'afterClusterTime is not sent on writes pending libmongoc support (PHPLIB-1834, DRIVERS-3274)',
// Skips dating back to legacy transaction tests
'transactions/mongos-recovery-token: commitTransaction retry fails on new mongos' => 'isMaster failpoints cannot be disabled',
'transactions/pin-mongos: remain pinned after non-transient error on commit' => 'Blocked on DRIVERS-2104',
Expand Down Expand Up @@ -150,6 +159,17 @@ public function setUp(): void
}
}

#[DataProvider('provideCausalConsistencyTests')]
public function testCausalConsistency(UnifiedTestCase $test): void
{
self::$runner->run($test);
}

public static function provideCausalConsistencyTests(): Generator
{
return self::provideTests('causal-consistency/tests', 'causal-consistency');
}

#[DataProvider('provideChangeStreamsTests')]
public function testChangeStreams(UnifiedTestCase $test): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/specifications
Submodule specifications updated 53 files
+7 −1 .github/CODEOWNERS
+12 −7 source/benchmarking/benchmarking.md
+ source/benchmarking/data/extended_bson.tgz
+19 −15 source/causal-consistency/causal-consistency.md
+151 −0 source/causal-consistency/tests/causal-consistency-clientBulkWrite.json
+75 −0 source/causal-consistency/tests/causal-consistency-clientBulkWrite.yml
+1,396 −0 source/causal-consistency/tests/causal-consistency-write-commands.json
+472 −0 source/causal-consistency/tests/causal-consistency-write-commands.yml
+39 −23 source/client-side-encryption/client-side-encryption.md
+30 −0 source/client-side-encryption/etc/data/encryptedFields-c10.json
+40 −0 source/client-side-encryption/etc/data/encryptedFields-prefix-suffix-ci-di.json
+44 −0 source/client-side-encryption/etc/data/encryptedFields-prefix-suffix-preview.json
+11 −5 source/client-side-encryption/etc/data/encryptedFields-prefix-suffix.json
+31 −0 source/client-side-encryption/etc/data/encryptedFields-substring-ci-di.json
+3 −0 source/client-side-encryption/etc/data/encryptedFields-substring.json
+330 −64 source/client-side-encryption/tests/README.md
+3 −4 source/client-side-encryption/tests/unified/QE-Text-cleanupStructuredEncryptionData.json
+3 −4 source/client-side-encryption/tests/unified/QE-Text-cleanupStructuredEncryptionData.yml
+4 −5 source/client-side-encryption/tests/unified/QE-Text-compactStructuredEncryptionData.json
+3 −4 source/client-side-encryption/tests/unified/QE-Text-compactStructuredEncryptionData.yml
+338 −0 source/client-side-encryption/tests/unified/QE-Text-prefix.json
+225 −0 source/client-side-encryption/tests/unified/QE-Text-prefix.yml
+1 −1 source/client-side-encryption/tests/unified/QE-Text-prefixPreview.json
+1 −1 source/client-side-encryption/tests/unified/QE-Text-prefixPreview.yml
+338 −0 source/client-side-encryption/tests/unified/QE-Text-suffix.json
+221 −0 source/client-side-encryption/tests/unified/QE-Text-suffix.yml
+2 −2 source/client-side-encryption/tests/unified/QE-Text-suffixPreview.json
+2 −2 source/client-side-encryption/tests/unified/QE-Text-suffixPreview.yml
+5 −3 source/collation/collation.md
+4 −2 source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-custom-maxConnecting-is-enforced.json
+2 −0 source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-custom-maxConnecting-is-enforced.yml
+4 −2 source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-is-enforced.json
+2 −0 source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-is-enforced.yml
+4 −2 source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.json
+2 −0 source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-maxConnecting-timeout.yml
+4 −2 ...connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-minPoolSize-connection-maxConnecting.json
+2 −0 .../connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-minPoolSize-connection-maxConnecting.yml
+4 −2 ...ce/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-returned-connection-maxConnecting.json
+2 −0 source/connection-monitoring-and-pooling/tests/cmap-format/pool-checkout-returned-connection-maxConnecting.yml
+4 −2 source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupting-pending-connections.json
+2 −0 source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupting-pending-connections.yml
+6 −9 source/message/OP_MSG.md
+15 −16 source/mongodb-handshake/handshake.md
+25 −0 source/read-write-concern/read-write-concern.md
+5 −3 source/transactions-convenient-api/tests/unified/callback-aborts.json
+2 −1 source/transactions-convenient-api/tests/unified/callback-aborts.yml
+5 −3 source/transactions-convenient-api/tests/unified/callback-commits.json
+2 −1 source/transactions-convenient-api/tests/unified/callback-commits.yml
+18 −2 source/transactions/tests/unified/commit.json
+8 −2 source/transactions/tests/unified/commit.yml
+6 −2 source/transactions/tests/unified/retryable-writes.json
+4 −2 source/transactions/tests/unified/retryable-writes.yml
+5 −0 source/unified-test-format/tests/Makefile
Loading