54 lines
1.0 KiB
JSON
54 lines
1.0 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|