Skip to content

Commit 126dea3

Browse files
rename 2 test files
1 parent 21d8e5f commit 126dea3

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"description": "dropSearchIndex",
3+
"schemaVersion": "1.4",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"useMultipleMongoses": false,
9+
"observeEvents": [
10+
"commandStartedEvent"
11+
]
12+
}
13+
},
14+
{
15+
"database": {
16+
"id": "database0",
17+
"client": "client0",
18+
"databaseName": "database0"
19+
}
20+
},
21+
{
22+
"collection": {
23+
"id": "collection0",
24+
"database": "database0",
25+
"collectionName": "collection0"
26+
}
27+
}
28+
],
29+
"runOnRequirements": [
30+
{
31+
"minServerVersion": "7.0.0",
32+
"topologies": [
33+
"replicaset",
34+
"load-balanced",
35+
"sharded"
36+
],
37+
"serverless": "forbid"
38+
}
39+
],
40+
"tests": [
41+
{
42+
"description": "sends the correct command",
43+
"operations": [
44+
{
45+
"name": "dropSearchIndex",
46+
"object": "collection0",
47+
"arguments": {
48+
"name": "test index"
49+
},
50+
"expectError": {
51+
"isError": true
52+
}
53+
}
54+
],
55+
"expectEvents": [
56+
{
57+
"client": "client0",
58+
"events": [
59+
{
60+
"commandStartedEvent": {
61+
"command": {
62+
"dropSearchIndex": "collection0",
63+
"name": "test index",
64+
"$db": "database0"
65+
}
66+
}
67+
}
68+
]
69+
}
70+
]
71+
}
72+
]
73+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
description: "dropSearchIndex"
2+
schemaVersion: "1.4"
3+
createEntities:
4+
- client:
5+
id: &client0 client0
6+
useMultipleMongoses: false
7+
observeEvents:
8+
- commandStartedEvent
9+
- database:
10+
id: &database0 database0
11+
client: *client0
12+
databaseName: *database0
13+
- collection:
14+
id: &collection0 collection0
15+
database: *database0
16+
collectionName: *collection0
17+
18+
runOnRequirements:
19+
- minServerVersion: "7.0.0"
20+
topologies: [ replicaset, load-balanced, sharded ]
21+
serverless: forbid
22+
23+
tests:
24+
- description: "sends the correct command"
25+
operations:
26+
- name: dropSearchIndex
27+
object: *collection0
28+
arguments:
29+
name: &indexName 'test index'
30+
expectError:
31+
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
32+
# against an Atlas cluster and the expectError will be removed.
33+
isError: true
34+
expectEvents:
35+
- client: *client0
36+
events:
37+
- commandStartedEvent:
38+
command:
39+
dropSearchIndex: *collection0
40+
name: *indexName
41+
$db: *database0
42+

0 commit comments

Comments
 (0)