From 2d9e28fb45519ecb00a93c1dc5292fa3c41eb8df Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Wed, 13 Mar 2024 09:20:58 +0100 Subject: [PATCH] Exclude read-write-concern tests from serverless testing --- tests/UnifiedSpecTests/UnifiedSpecTest.php | 58 +++++++++++++++++----- 1 file changed, 46 insertions(+), 12 deletions(-) diff --git a/tests/UnifiedSpecTests/UnifiedSpecTest.php b/tests/UnifiedSpecTests/UnifiedSpecTest.php index 59d3d8b94..04346bcd6 100644 --- a/tests/UnifiedSpecTests/UnifiedSpecTest.php +++ b/tests/UnifiedSpecTests/UnifiedSpecTest.php @@ -16,7 +16,6 @@ * Unified test format spec tests. * * @see https://github.com/mongodb/specifications/blob/master/source/unified-test-format/unified-test-format.rst - * @group serverless */ class UnifiedSpecTest extends FunctionalTestCase { @@ -231,7 +230,10 @@ public function provideAtlasDataLakeTests() return $this->provideTests(__DIR__ . '/atlas-data-lake/*.json'); } - /** @dataProvider provideChangeStreamsTests */ + /** + * @dataProvider provideChangeStreamsTests + * @group serverless + */ public function testChangeStreams(UnifiedTestCase $test): void { self::$runner->run($test); @@ -245,6 +247,7 @@ public function provideChangeStreamsTests() /** * @dataProvider provideClientSideEncryptionTests * @group csfle + * @group serverless */ public function testClientSideEncryption(UnifiedTestCase $test): void { @@ -256,7 +259,10 @@ public function provideClientSideEncryptionTests() return $this->provideTests(__DIR__ . '/client-side-encryption/*.json'); } - /** @dataProvider provideCollectionManagementTests */ + /** + * @dataProvider provideCollectionManagementTests + * @group serverless + */ public function testCollectionManagement(UnifiedTestCase $test): void { self::$runner->run($test); @@ -267,7 +273,10 @@ public function provideCollectionManagementTests() return $this->provideTests(__DIR__ . '/collection-management/*.json'); } - /** @dataProvider provideCommandMonitoringTests */ + /** + * @dataProvider provideCommandMonitoringTests + * @group serverless + */ public function testCommandMonitoring(UnifiedTestCase $test): void { self::$runner->run($test); @@ -278,7 +287,10 @@ public function provideCommandMonitoringTests() return $this->provideTests(__DIR__ . '/command-monitoring/*.json'); } - /** @dataProvider provideCrudTests */ + /** + * @dataProvider provideCrudTests + * @group serverless + */ public function testCrud(UnifiedTestCase $test): void { self::$runner->run($test); @@ -289,7 +301,10 @@ public function provideCrudTests() return $this->provideTests(__DIR__ . '/crud/*.json'); } - /** @dataProvider provideGridFSTests */ + /** + * @dataProvider provideGridFSTests + * @group serverless + */ public function testGridFS(UnifiedTestCase $test): void { self::$runner->run($test); @@ -300,7 +315,10 @@ public function provideGridFSTests() return $this->provideTests(__DIR__ . '/gridfs/*.json'); } - /** @dataProvider provideLoadBalancers */ + /** + * @dataProvider provideLoadBalancers + * @group serverless + */ public function testLoadBalancers(UnifiedTestCase $test): void { self::$runner->run($test); @@ -322,7 +340,10 @@ public function provideReadWriteConcernTests() return $this->provideTests(__DIR__ . '/read-write-concern/*.json'); } - /** @dataProvider provideRetryableReadsTests */ + /** + * @dataProvider provideRetryableReadsTests + * @group serverless + */ public function testRetryableReads(UnifiedTestCase $test): void { self::$runner->run($test); @@ -333,7 +354,10 @@ public function provideRetryableReadsTests() return $this->provideTests(__DIR__ . '/retryable-reads/*.json'); } - /** @dataProvider provideRetryableWritesTests */ + /** + * @dataProvider provideRetryableWritesTests + * @group serverless + */ public function testRetryableWrites(UnifiedTestCase $test): void { self::$runner->run($test); @@ -344,7 +368,10 @@ public function provideRetryableWritesTests() return $this->provideTests(__DIR__ . '/retryable-writes/*.json'); } - /** @dataProvider provideRunCommandTests */ + /** + * @dataProvider provideRunCommandTests + * @group serverless + */ public function testRunCommand(UnifiedTestCase $test): void { self::$runner->run($test); @@ -355,7 +382,10 @@ public function provideRunCommandTests() return $this->provideTests(__DIR__ . '/run-command/*.json'); } - /** @dataProvider provideSessionsTests */ + /** + * @dataProvider provideSessionsTests + * @group serverless + */ public function testSessions(UnifiedTestCase $test): void { self::$runner->run($test); @@ -366,7 +396,10 @@ public function provideSessionsTests() return $this->provideTests(__DIR__ . '/sessions/*.json'); } - /** @dataProvider provideTransactionsTests */ + /** + * @dataProvider provideTransactionsTests + * @group serverless + */ public function testTransactions(UnifiedTestCase $test): void { self::$runner->run($test); @@ -390,6 +423,7 @@ public function provideTransactionsConvenientApiTests() /** * @dataProvider provideVersionedApiTests + * @group serverless * @group versioned-api */ public function testVersionedApi(UnifiedTestCase $test): void