Skip to content

Commit 928c83f

Browse files
committed
Unified CSFLE spec tests for key management API
Synced with mongodb/specifications@10b4a41
1 parent cb9331f commit 928c83f

25 files changed

+6161
-0
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class UnifiedSpecTest extends FunctionalTestCase
5959
'valid-pass/entity-client-cmap-events: events are captured during an operation' => 'PHPC does not implement CMAP',
6060
'valid-pass/expectedEventsForClient-eventType: eventType can be set to command and cmap' => 'PHPC does not implement CMAP',
6161
'valid-pass/expectedEventsForClient-eventType: eventType defaults to command if unset' => 'PHPC does not implement CMAP',
62+
// CSOT is not yet implemented
63+
'valid-pass/collectionData-createOptions: collection is created with the correct options' => 'CSOT is not yet implemented (PHPC-1760)',
64+
'valid-pass/createEntities-operation: createEntities operation' => 'CSOT is not yet implemented (PHPC-1760)',
65+
'valid-pass/entity-cursor-iterateOnce: iterateOnce' => 'CSOT is not yet implemented (PHPC-1760)',
66+
'valid-pass/matches-lte-operator: special lte matching operator' => 'CSOT is not yet implemented (PHPC-1760)',
6267
];
6368

6469
/** @var UnifiedTestRunner */
@@ -95,6 +100,19 @@ public function provideChangeStreamsTests()
95100
return $this->provideTests(__DIR__ . '/change-streams/*.json');
96101
}
97102

103+
/**
104+
* @dataProvider provideClientSideEncryptionTests
105+
*/
106+
public function testClientSideEncryption(UnifiedTestCase $test): void
107+
{
108+
self::$runner->run($test);
109+
}
110+
111+
public function provideClientSideEncryptionTests()
112+
{
113+
return $this->provideTests(__DIR__ . '/client-side-encryption/*.json');
114+
}
115+
98116
/**
99117
* @dataProvider provideCollectionManagementTests
100118
*/

0 commit comments

Comments
 (0)