63 lines
1.2 KiB
JSON
63 lines
1.2 KiB
JSON
{
|
|
"description": "entity-find-cursor",
|
|
"schemaVersion": "1.3",
|
|
"createEntities": [
|
|
{
|
|
"client": {
|
|
"id": "client0"
|
|
}
|
|
},
|
|
{
|
|
"database": {
|
|
"id": "database0",
|
|
"client": "client0",
|
|
"databaseName": "database0Name"
|
|
}
|
|
},
|
|
{
|
|
"collection": {
|
|
"id": "collection0",
|
|
"database": "database0",
|
|
"collectionName": "coll0"
|
|
}
|
|
}
|
|
],
|
|
"initialData": [
|
|
{
|
|
"databaseName": "database0Name",
|
|
"collectionName": "coll0",
|
|
"documents": []
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"description": "createFindCursor fails if filter is not specified",
|
|
"operations": [
|
|
{
|
|
"name": "createFindCursor",
|
|
"object": "collection0",
|
|
"saveResultAsEntity": "cursor0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "iterateUntilDocumentOrError fails if it references a nonexistent entity",
|
|
"operations": [
|
|
{
|
|
"name": "iterateUntilDocumentOrError",
|
|
"object": "cursor0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "close fails if it references a nonexistent entity",
|
|
"operations": [
|
|
{
|
|
"name": "close",
|
|
"object": "cursor0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|