Skip to content

Commit aee6c13

Browse files
authored
Exclude read-write-concern tests from serverless testing (#1253)
1 parent 4ca8423 commit aee6c13

File tree

1 file changed

+46
-12
lines changed

1 file changed

+46
-12
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* Unified test format spec tests.
1717
*
1818
* @see https://github.com/mongodb/specifications/blob/master/source/unified-test-format/unified-test-format.rst
19-
* @group serverless
2019
*/
2120
class UnifiedSpecTest extends FunctionalTestCase
2221
{
@@ -231,7 +230,10 @@ public function provideAtlasDataLakeTests()
231230
return $this->provideTests(__DIR__ . '/atlas-data-lake/*.json');
232231
}
233232

234-
/** @dataProvider provideChangeStreamsTests */
233+
/**
234+
* @dataProvider provideChangeStreamsTests
235+
* @group serverless
236+
*/
235237
public function testChangeStreams(UnifiedTestCase $test): void
236238
{
237239
self::$runner->run($test);
@@ -245,6 +247,7 @@ public function provideChangeStreamsTests()
245247
/**
246248
* @dataProvider provideClientSideEncryptionTests
247249
* @group csfle
250+
* @group serverless
248251
*/
249252
public function testClientSideEncryption(UnifiedTestCase $test): void
250253
{
@@ -256,7 +259,10 @@ public function provideClientSideEncryptionTests()
256259
return $this->provideTests(__DIR__ . '/client-side-encryption/*.json');
257260
}
258261

259-
/** @dataProvider provideCollectionManagementTests */
262+
/**
263+
* @dataProvider provideCollectionManagementTests
264+
* @group serverless
265+
*/
260266
public function testCollectionManagement(UnifiedTestCase $test): void
261267
{
262268
self::$runner->run($test);
@@ -267,7 +273,10 @@ public function provideCollectionManagementTests()
267273
return $this->provideTests(__DIR__ . '/collection-management/*.json');
268274
}
269275

270-
/** @dataProvider provideCommandMonitoringTests */
276+
/**
277+
* @dataProvider provideCommandMonitoringTests
278+
* @group serverless
279+
*/
271280
public function testCommandMonitoring(UnifiedTestCase $test): void
272281
{
273282
self::$runner->run($test);
@@ -278,7 +287,10 @@ public function provideCommandMonitoringTests()
278287
return $this->provideTests(__DIR__ . '/command-monitoring/*.json');
279288
}
280289

281-
/** @dataProvider provideCrudTests */
290+
/**
291+
* @dataProvider provideCrudTests
292+
* @group serverless
293+
*/
282294
public function testCrud(UnifiedTestCase $test): void
283295
{
284296
self::$runner->run($test);
@@ -289,7 +301,10 @@ public function provideCrudTests()
289301
return $this->provideTests(__DIR__ . '/crud/*.json');
290302
}
291303

292-
/** @dataProvider provideGridFSTests */
304+
/**
305+
* @dataProvider provideGridFSTests
306+
* @group serverless
307+
*/
293308
public function testGridFS(UnifiedTestCase $test): void
294309
{
295310
self::$runner->run($test);
@@ -300,7 +315,10 @@ public function provideGridFSTests()
300315
return $this->provideTests(__DIR__ . '/gridfs/*.json');
301316
}
302317

303-
/** @dataProvider provideLoadBalancers */
318+
/**
319+
* @dataProvider provideLoadBalancers
320+
* @group serverless
321+
*/
304322
public function testLoadBalancers(UnifiedTestCase $test): void
305323
{
306324
self::$runner->run($test);
@@ -322,7 +340,10 @@ public function provideReadWriteConcernTests()
322340
return $this->provideTests(__DIR__ . '/read-write-concern/*.json');
323341
}
324342

325-
/** @dataProvider provideRetryableReadsTests */
343+
/**
344+
* @dataProvider provideRetryableReadsTests
345+
* @group serverless
346+
*/
326347
public function testRetryableReads(UnifiedTestCase $test): void
327348
{
328349
self::$runner->run($test);
@@ -333,7 +354,10 @@ public function provideRetryableReadsTests()
333354
return $this->provideTests(__DIR__ . '/retryable-reads/*.json');
334355
}
335356

336-
/** @dataProvider provideRetryableWritesTests */
357+
/**
358+
* @dataProvider provideRetryableWritesTests
359+
* @group serverless
360+
*/
337361
public function testRetryableWrites(UnifiedTestCase $test): void
338362
{
339363
self::$runner->run($test);
@@ -344,7 +368,10 @@ public function provideRetryableWritesTests()
344368
return $this->provideTests(__DIR__ . '/retryable-writes/*.json');
345369
}
346370

347-
/** @dataProvider provideRunCommandTests */
371+
/**
372+
* @dataProvider provideRunCommandTests
373+
* @group serverless
374+
*/
348375
public function testRunCommand(UnifiedTestCase $test): void
349376
{
350377
self::$runner->run($test);
@@ -355,7 +382,10 @@ public function provideRunCommandTests()
355382
return $this->provideTests(__DIR__ . '/run-command/*.json');
356383
}
357384

358-
/** @dataProvider provideSessionsTests */
385+
/**
386+
* @dataProvider provideSessionsTests
387+
* @group serverless
388+
*/
359389
public function testSessions(UnifiedTestCase $test): void
360390
{
361391
self::$runner->run($test);
@@ -366,7 +396,10 @@ public function provideSessionsTests()
366396
return $this->provideTests(__DIR__ . '/sessions/*.json');
367397
}
368398

369-
/** @dataProvider provideTransactionsTests */
399+
/**
400+
* @dataProvider provideTransactionsTests
401+
* @group serverless
402+
*/
370403
public function testTransactions(UnifiedTestCase $test): void
371404
{
372405
self::$runner->run($test);
@@ -390,6 +423,7 @@ public function provideTransactionsConvenientApiTests()
390423

391424
/**
392425
* @dataProvider provideVersionedApiTests
426+
* @group serverless
393427
* @group versioned-api
394428
*/
395429
public function testVersionedApi(UnifiedTestCase $test): void

0 commit comments

Comments
 (0)