Skip to content

Commit 7709635

Browse files
authored
Merge pull request #1216 from alcaeus/1.17-merge-master
Merge branch '1.17' into master
2 parents b700b10 + 6f60cec commit 7709635

File tree

9 files changed

+272
-18
lines changed

9 files changed

+272
-18
lines changed

.evergreen/config/functions.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ functions:
141141
params:
142142
script: |
143143
${PREPARE_SHELL}
144-
SKIP_CRYPT_SHARED=${SKIP_CRYPT_SHARED} SKIP_LEGACY_SHELL=true MONGODB_VERSION=${MONGODB_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
144+
SKIP_CRYPT_SHARED=${SKIP_CRYPT_SHARED} SKIP_LEGACY_SHELL=true MONGODB_VERSION=${MONGODB_VERSION} ORCHESTRATION_FILE=${ORCHESTRATION_FILE} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} LOAD_BALANCER=${LOAD_BALANCER} REQUIRE_API_VERSION=${REQUIRE_API_VERSION} ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
145145
# run-orchestration generates expansion file with MONGODB_URI and CRYPT_SHARED_LIB_PATH
146146
- command: expansions.update
147147
params:
@@ -152,7 +152,7 @@ functions:
152152
params:
153153
script: |
154154
${PREPARE_SHELL}
155-
sh ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
155+
${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh
156156
157157
"bootstrap mongohoused":
158158
- command: shell.exec
@@ -161,14 +161,14 @@ functions:
161161
cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake
162162
163163
DRIVERS_TOOLS="${DRIVERS_TOOLS}" \
164-
bash pull-mongohouse-image.sh
164+
./pull-mongohouse-image.sh
165165
- command: shell.exec
166166
params:
167167
script: |
168168
cd ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake
169169
170170
DRIVERS_TOOLS="${DRIVERS_TOOLS}" \
171-
bash run-mongohouse-image.sh
171+
./run-mongohouse-image.sh
172172
173173
"create serverless instance":
174174
- command: shell.exec
@@ -277,7 +277,7 @@ functions:
277277
PHP_VERSION=${PHP_VERSION} \
278278
SSL=${SSL} \
279279
TESTS=${TESTS} \
280-
sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
280+
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
281281
282282
"run atlas data lake test":
283283
- command: shell.exec
@@ -290,7 +290,7 @@ functions:
290290
291291
MONGODB_URI="mongodb://mhuser:[email protected]:27017" \
292292
TESTS="atlas-data-lake" \
293-
sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
293+
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
294294
295295
"run serverless tests":
296296
- command: shell.exec
@@ -323,7 +323,7 @@ functions:
323323
CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH} \
324324
MONGODB_URI="${SERVERLESS_URI}" \
325325
TESTS="serverless" \
326-
sh ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
326+
${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
327327
328328
"cleanup":
329329
- command: shell.exec

tests/SpecTests/ClientSideEncryptionSpecTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ public function testOnDemandAwsCredentials(bool $shouldSucceed): void
17621762
];
17631763

17641764
if (! $shouldSucceed) {
1765-
$this->expectException(AuthenticationException::class);
1765+
$this->expectException(RuntimeException::class);
17661766
}
17671767

17681768
$dataKeyId = $clientEncryption->createDataKey('aws', $dataKeyOpts);

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class UnifiedSpecTest extends FunctionalTestCase
8787
'valid-pass/entity-commandCursor: runCursorCommand creates and exhausts cursor by running getMores' => 'commandCursor API is not yet implemented (PHPLIB-1077)',
8888
'valid-pass/entity-commandCursor: createCommandCursor creates a cursor and stores it as an entity that can be iterated one document at a time' => 'commandCursor API is not yet implemented (PHPLIB-1077)',
8989
'valid-pass/entity-commandCursor: createCommandCursor\'s cursor can be closed and will perform a killCursors operation' => 'commandCursor API is not yet implemented (PHPLIB-1077)',
90+
// libmongoc always adds readConcern to aggregate command
91+
'index-management/search index operations ignore read and write concern: listSearchIndexes ignores read and write concern' => 'libmongoc appends readConcern to aggregate command',
9092
];
9193

9294
private static UnifiedTestRunner $runner;

tests/UnifiedSpecTests/index-management/createSearchIndex.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
},
5656
"expectError": {
5757
"isError": true,
58-
"errorContains": "Search index commands are only supported with Atlas"
58+
"errorContains": "Atlas"
5959
}
6060
}
6161
],
@@ -102,7 +102,7 @@
102102
},
103103
"expectError": {
104104
"isError": true,
105-
"errorContains": "Search index commands are only supported with Atlas"
105+
"errorContains": "Atlas"
106106
}
107107
}
108108
],

tests/UnifiedSpecTests/index-management/createSearchIndexes.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"expectError": {
5151
"isError": true,
52-
"errorContains": "Search index commands are only supported with Atlas"
52+
"errorContains": "Atlas"
5353
}
5454
}
5555
],
@@ -89,7 +89,7 @@
8989
},
9090
"expectError": {
9191
"isError": true,
92-
"errorContains": "Search index commands are only supported with Atlas"
92+
"errorContains": "Atlas"
9393
}
9494
}
9595
],
@@ -138,7 +138,7 @@
138138
},
139139
"expectError": {
140140
"isError": true,
141-
"errorContains": "Search index commands are only supported with Atlas"
141+
"errorContains": "Atlas"
142142
}
143143
}
144144
],

tests/UnifiedSpecTests/index-management/dropSearchIndex.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"expectError": {
5151
"isError": true,
52-
"errorContains": "Search index commands are only supported with Atlas"
52+
"errorContains": "Atlas"
5353
}
5454
}
5555
],

tests/UnifiedSpecTests/index-management/listSearchIndexes.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"object": "collection0",
4747
"expectError": {
4848
"isError": true,
49-
"errorContains": "Search index commands are only supported with Atlas"
49+
"errorContains": "Atlas"
5050
}
5151
}
5252
],
@@ -81,7 +81,7 @@
8181
},
8282
"expectError": {
8383
"isError": true,
84-
"errorContains": "Search index commands are only supported with Atlas"
84+
"errorContains": "Atlas"
8585
}
8686
}
8787
],
@@ -122,7 +122,7 @@
122122
},
123123
"expectError": {
124124
"isError": true,
125-
"errorContains": "Search index commands are only supported with Atlas"
125+
"errorContains": "Atlas"
126126
}
127127
}
128128
],

0 commit comments

Comments
 (0)