Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDRIVER-3749 test mongohouse for C driver
- Loading branch information
1 parent
2df4bd3
commit 47db71e
Showing
17 changed files
with
760 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"collection_name": "driverdata", | ||
"database_name": "test", | ||
"tests": [ | ||
{ | ||
"description": "Aggregate with pipeline (project, sort, limit)", | ||
"operations": [ | ||
{ | ||
"object": "collection", | ||
"name": "aggregate", | ||
"arguments": { | ||
"pipeline": [ | ||
{ | ||
"$project": { | ||
"_id": 0 | ||
} | ||
}, | ||
{ | ||
"$sort": { | ||
"a": 1 | ||
} | ||
}, | ||
{ | ||
"$limit": 2 | ||
} | ||
] | ||
}, | ||
"result": [ | ||
{ | ||
"a": 1, | ||
"b": 2, | ||
"c": 3 | ||
}, | ||
{ | ||
"a": 2, | ||
"b": 3, | ||
"c": 4 | ||
} | ||
] | ||
} | ||
], | ||
"expectations": [ | ||
{ | ||
"command_started_event": { | ||
"command": { | ||
"aggregate": "driverdata" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
src/libmongoc/tests/json/mongohouse/estimatedDocumentCount.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"collection_name": "driverdata", | ||
"database_name": "test", | ||
"tests": [ | ||
{ | ||
"description": "estimatedDocumentCount succeeds", | ||
"operations": [ | ||
{ | ||
"object": "collection", | ||
"name": "estimatedDocumentCount", | ||
"result": 15 | ||
} | ||
], | ||
"expectations": [ | ||
{ | ||
"command_started_event": { | ||
"command": { | ||
"count": "driverdata" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"collection_name": "driverdata", | ||
"database_name": "test", | ||
"tests": [ | ||
{ | ||
"description": "Find with projection and sort", | ||
"operations": [ | ||
{ | ||
"object": "collection", | ||
"name": "find", | ||
"arguments": { | ||
"filter": { | ||
"b": { | ||
"$gt": 5 | ||
} | ||
}, | ||
"projection": { | ||
"_id": 0 | ||
}, | ||
"sort": { | ||
"a": 1 | ||
}, | ||
"limit": 5 | ||
}, | ||
"result": [ | ||
{ | ||
"a": 5, | ||
"b": 6, | ||
"c": 7 | ||
}, | ||
{ | ||
"a": 6, | ||
"b": 7, | ||
"c": 8 | ||
}, | ||
{ | ||
"a": 7, | ||
"b": 8, | ||
"c": 9 | ||
}, | ||
{ | ||
"a": 8, | ||
"b": 9, | ||
"c": 10 | ||
}, | ||
{ | ||
"a": 9, | ||
"b": 10, | ||
"c": 11 | ||
} | ||
] | ||
} | ||
], | ||
"expectations": [ | ||
{ | ||
"command_started_event": { | ||
"command": { | ||
"find": "driverdata" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.