Skip to content

Commit 7c97b24

Browse files
authored
Merge branch 'master' into phplib-596-connection-tutorial
2 parents 87525f7 + d71588e commit 7c97b24

File tree

3 files changed

+86
-5
lines changed

3 files changed

+86
-5
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
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
1920
*/
2021
class UnifiedSpecTest extends FunctionalTestCase
2122
{
@@ -33,9 +34,9 @@ class UnifiedSpecTest extends FunctionalTestCase
3334
'load-balancers/cursors are correctly pinned to connections for load-balanced clusters: listIndexes pins the cursor to a connection' => 'PHPC does not implement CMAP',
3435
'load-balancers/cursors are correctly pinned to connections for load-balanced clusters: change streams pin to a connection' => 'PHPC does not implement CMAP',
3536
'load-balancers/monitoring events include correct fields: poolClearedEvent events include serviceId' => 'PHPC does not implement CMAP',
36-
'load-balancers/load-balancers/state change errors are correctly handled: only connections for a specific serviceId are closed when pools are cleared' => 'PHPC does not implement CMAP',
3737
'load-balancers/state change errors are correctly handled: only connections for a specific serviceId are closed when pools are cleared' => 'PHPC does not implement CMAP',
3838
'load-balancers/state change errors are correctly handled: errors during the initial connection hello are ignored' => 'PHPC does not implement CMAP',
39+
'load-balancers/state change errors are correctly handled: errors during authentication are processed' => 'PHPC does not implement CMAP',
3940
'load-balancers/state change errors are correctly handled: stale errors are ignored' => 'PHPC does not implement CMAP',
4041
'load-balancers/transactions are correctly pinned to connections for load-balanced clusters: all operations go to the same mongos' => 'PHPC does not implement CMAP',
4142
'load-balancers/transactions are correctly pinned to connections for load-balanced clusters: transaction can be committed multiple times' => 'PHPC does not implement CMAP',
@@ -141,7 +142,6 @@ public function provideCommandMonitoringTests()
141142

142143
/**
143144
* @dataProvider provideCrudTests
144-
* @group serverless
145145
*/
146146
public function testCrud(UnifiedTestCase $test): void
147147
{
@@ -194,7 +194,6 @@ public function provideSessionsTests()
194194

195195
/**
196196
* @dataProvider provideTransactionsTests
197-
* @group serverless
198197
*/
199198
public function testTransactions(UnifiedTestCase $test): void
200199
{
@@ -209,7 +208,6 @@ public function provideTransactionsTests()
209208
/**
210209
* @dataProvider provideVersionedApiTests
211210
* @group versioned-api
212-
* @group serverless
213211
*/
214212
public function testVersionedApi(UnifiedTestCase $test): void
215213
{
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"description": "change-streams-clusterTime",
3+
"schemaVersion": "1.4",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"useMultipleMongoses": false
9+
}
10+
},
11+
{
12+
"database": {
13+
"id": "database0",
14+
"client": "client0",
15+
"databaseName": "database0"
16+
}
17+
},
18+
{
19+
"collection": {
20+
"id": "collection0",
21+
"database": "database0",
22+
"collectionName": "collection0"
23+
}
24+
}
25+
],
26+
"runOnRequirements": [
27+
{
28+
"minServerVersion": "4.0.0",
29+
"topologies": [
30+
"replicaset",
31+
"sharded-replicaset",
32+
"load-balanced",
33+
"sharded"
34+
],
35+
"serverless": "forbid"
36+
}
37+
],
38+
"initialData": [
39+
{
40+
"collectionName": "collection0",
41+
"databaseName": "database0",
42+
"documents": []
43+
}
44+
],
45+
"tests": [
46+
{
47+
"description": "clusterTime is present",
48+
"operations": [
49+
{
50+
"name": "createChangeStream",
51+
"object": "collection0",
52+
"arguments": {
53+
"pipeline": []
54+
},
55+
"saveResultAsEntity": "changeStream0"
56+
},
57+
{
58+
"name": "insertOne",
59+
"object": "collection0",
60+
"arguments": {
61+
"document": {
62+
"_id": 1
63+
}
64+
}
65+
},
66+
{
67+
"name": "iterateUntilDocumentOrError",
68+
"object": "changeStream0",
69+
"expectResult": {
70+
"ns": {
71+
"db": "database0",
72+
"coll": "collection0"
73+
},
74+
"clusterTime": {
75+
"$$exists": true
76+
}
77+
}
78+
}
79+
]
80+
}
81+
]
82+
}

tests/UnifiedSpecTests/change-streams/change-streams-showExpandedEvents.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"replicaset",
99
"sharded-replicaset",
1010
"sharded"
11-
]
11+
],
12+
"serverless": "forbid"
1213
}
1314
],
1415
"createEntities": [

0 commit comments

Comments
 (0)