Skip to content

Commit ddd5c5b

Browse files
authored
Convert legacy data lake tests to unified (#1332)
JAVA-5354
1 parent 5a58c4b commit ddd5c5b

File tree

19 files changed

+499
-392
lines changed

19 files changed

+499
-392
lines changed

.evergreen/run-atlas-data-lake-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ DATA_LAKE_URI="mongodb://mhuser:pencil@localhost"
2323
echo "Running Atlas Data Lake tests with Java ${JAVA_VERSION}"
2424
./gradlew -version
2525
./gradlew -PjavaVersion=${JAVA_VERSION} -Dorg.mongodb.test.data.lake=true -Dorg.mongodb.test.uri=${DATA_LAKE_URI} \
26-
--info driver-sync:test --tests AtlasDataLake*Test
26+
--info driver-sync:test --tests *AtlasDataLake*Test

driver-core/src/test/resources/atlas-data-lake/README.rst

Lines changed: 0 additions & 66 deletions
This file was deleted.

driver-core/src/test/resources/atlas-data-lake/aggregate.json

Lines changed: 0 additions & 53 deletions
This file was deleted.

driver-core/src/test/resources/atlas-data-lake/estimatedDocumentCount.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

driver-core/src/test/resources/atlas-data-lake/getMore.json

Lines changed: 0 additions & 58 deletions
This file was deleted.

driver-core/src/test/resources/atlas-data-lake/listCollections.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

driver-core/src/test/resources/atlas-data-lake/listDatabases.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

driver-core/src/test/resources/atlas-data-lake/runCommand.json

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"description": "aggregate",
3+
"schemaVersion": "1.0",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"observeEvents": [
9+
"commandStartedEvent"
10+
]
11+
}
12+
},
13+
{
14+
"database": {
15+
"id": "database0",
16+
"client": "client0",
17+
"databaseName": "test"
18+
}
19+
},
20+
{
21+
"collection": {
22+
"id": "collection0",
23+
"database": "database0",
24+
"collectionName": "driverdata"
25+
}
26+
}
27+
],
28+
"tests": [
29+
{
30+
"description": "Aggregate with pipeline (project, sort, limit)",
31+
"operations": [
32+
{
33+
"object": "collection0",
34+
"name": "aggregate",
35+
"arguments": {
36+
"pipeline": [
37+
{
38+
"$project": {
39+
"_id": 0
40+
}
41+
},
42+
{
43+
"$sort": {
44+
"a": 1
45+
}
46+
},
47+
{
48+
"$limit": 2
49+
}
50+
]
51+
},
52+
"expectResult": [
53+
{
54+
"a": 1,
55+
"b": 2,
56+
"c": 3
57+
},
58+
{
59+
"a": 2,
60+
"b": 3,
61+
"c": 4
62+
}
63+
]
64+
}
65+
],
66+
"expectEvents": [
67+
{
68+
"client": "client0",
69+
"events": [
70+
{
71+
"commandStartedEvent": {
72+
"command": {
73+
"aggregate": "driverdata"
74+
},
75+
"commandName": "aggregate",
76+
"databaseName": "test"
77+
}
78+
}
79+
]
80+
}
81+
]
82+
}
83+
]
84+
}

0 commit comments

Comments
 (0)