test(wxapi): 适配新的模型测试

This commit is contained in:
Fu Diwei 2021-08-07 14:40:29 +08:00
parent c7f9b34aed
commit e58b142a45
22 changed files with 152 additions and 0 deletions

View File

@ -0,0 +1,4 @@
{
"env": "test2-4a89da",
"query": ""
}

View File

@ -0,0 +1,8 @@
{
"errcode": 0,
"errmsg": "ok",
"id_list": [
"be62d9c4-43ec-4dc6-8ca1-30b206eeed24",
"0f4b8add5cdd728a003bf5c83ed99dff"
]
}

View File

@ -0,0 +1,4 @@
{
"env": "test2-4a89da",
"query": "db.collection(\"test_collection\").aggregate().match({tags:\"cloud\"}).limit(10).end()"
}

View File

@ -0,0 +1,10 @@
{
"errcode": 0,
"errmsg": "ok",
"data": [
"{\"_id\":\"f77e039f-f1cf-4aa8-bd59-16cbaa91e6ea\",\"location\":{\"type\":\"Point\",\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}]},\"done\":false,\"description\":\"learn cloud database\",\"due\":\"2019-09-09\",\"tags\":[\"cloud\",\"database\"]}",
"{\"_id\":\"6bb88938-49ea-42b6-a6f5-ce408970cfc6\",\"due\":\"2019-09-09\",\"tags\":[\"cloud\",\"database\"],\"location\":{\"type\":\"Point\",\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}]},\"done\":false,\"description\":\"学习 cloud database\"}",
"{\"_id\":\"51f4f67e-a6a1-4c3e-a50f-827380b8da86\",\"description\":\"学习 cloud database\",\"due\":\"2019-09-09\",\"tags\":[\"cloud\",\"database\"],\"location\":{\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}],\"type\":\"Point\"},\"done\":false}",
"{\"_id\":\"ee1d69da-b7ec-4e7a-bc1f-2fae31da4ce0\",\"tags\":[\"cloud\",\"database\"],\"location\":{\"type\":\"Point\",\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}]},\"done\":false,\"description\":\"学习 cloud database\",\"due\":\"2019-09-09\"}"
]
}

View File

@ -0,0 +1,4 @@
{
"env": "test2-4a89da",
"collection_name": "test_add_collection"
}

View File

@ -0,0 +1,4 @@
{
"env": "test2-4a89da",
"collection_name": "test_delete_collection"
}

View File

@ -0,0 +1,5 @@
{
"env": "test2-4a89da",
"limit": 10,
"offset": 0
}

View File

@ -0,0 +1,25 @@
{
"errcode": 0,
"errmsg": "ok",
"collections": [
{
"name": "geo",
"count": 13,
"size": 2469,
"index_count": 1,
"index_size": 36864
},
{
"name": "test_collection",
"count": 1,
"size": 67,
"index_count": 1,
"index_size": 16384
}
],
"pager": {
"Offset": 0,
"Limit": 10,
"Total": 2
}
}

View File

@ -0,0 +1,4 @@
{
"env": "test2-4a89da",
"query": "db.collection(\"geo\").where({done:true}).count()"
}

View File

@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"count": 3
}

View File

@ -0,0 +1,4 @@
{
"env": "test2-4a89da",
"query": "db.collection(\"geo\").where({done:false}).remove()"
}

View File

@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"deleted": 2
}

View File

@ -0,0 +1,6 @@
{
"env": "test2-4a89da",
"file_path": "test_export",
"file_type": 1,
"query": "const Point = db.Geo.Point;db.collection(\\'geo\\').where({name: \\'x\\',age: _.gt(10).and(_.lt(20)),loc: new Point(113,23),array: [1,2]}).limit(10).skip(1).orderBy(\\'age\\',\\'asc\\').orderBy(\\'name\\', \\'desc\\').field({ name: true }).get()"
}

View File

@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"job_id": 100074947
}

View File

@ -0,0 +1,8 @@
{
"env": "qbasetest-a5c40e",
"collection_name": "test1",
"file_path": "test_import",
"file_type": 1,
"stop_on_error": false,
"conflict_mode": 2
}

View File

@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"job_id": 100074947
}

View File

@ -0,0 +1,4 @@
{
"env": "test2-4a89da",
"job_id": 100071736
}

View File

@ -0,0 +1,9 @@
{
"errcode": 0,
"errmsg": "ok",
"status": "success",
"record_success": 3,
"record_fail": 0,
"error_msg": "导出完成.",
"file_url": "https://tcb-mongodb-data-1254135806.cos.ap-shanghai.myqcloud.com/..."
}

View File

@ -0,0 +1,21 @@
{
"env": "test2-4a89da",
"collection_name": "counters",
"create_indexes": [
{
"name": "add_index",
"unique": true,
"keys": [
{
"name": "test",
"direction": "2dsphere"
}
]
}
],
"drop_indexes": [
{
"name": "del_index"
}
]
}

View File

@ -0,0 +1,4 @@
{
"errcode": 0,
"errmsg": "ok"
}