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

This commit is contained in:
Fu Diwei 2021-08-06 16:53:23 +08:00
parent 9f2ce5ac0f
commit 6a0b42e718
16 changed files with 119 additions and 0 deletions

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": "test-env1",
"collection_name": "testcollection"
}

View File

@ -0,0 +1,14 @@
{
"errcode": 0,
"errmsg": "ok",
"collections": [
{
"name": "testcollection",
"count": 0,
"size": 0,
"index_count": 2,
"index_size": 8192
}
],
"total": 1
}

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,4 @@
{
"env": "myttest-8gu57so0bd9f9e8a",
"collection_name": "test"
}

View File

@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "ok",
"acl_tag": "CUSTOM",
"rule": "{\n \"read\": true,\n \"write\": \"doc._openid == auth.openid\"\n}"
}

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,15 @@
{
"env": "mmtest-5g7z68c153d7ff4b",
"collection_name": "test",
"indexes": [
{
"name": "due_index",
"keys": [
{
"name": "due",
"direction": "1"
}
]
}
]
}

View File

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

View File

@ -0,0 +1,6 @@
{
"env": "myttest-8gu57so0bd9f9e8a",
"collection_name": "test",
"acl_tag": "CUSTOM",
"rule": "{\n \"read\": true,\n \"write\": \"doc._openid == auth.openid\"\n}"
}

View File

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

View File

@ -0,0 +1,20 @@
{
"errcode": 0,
"errmsg": "ok",
"pager": {
"offset": 1,
"limit": 10,
"total": 2
},
"data": [
"{\"_id\":\"b15498af-1a5a-40b4-a4e7-b3fc4a1df482\",\"done\":true,\"name\":\"test\"}"
],
"matched": 1,
"modified": 1,
"id": "",
"deleted": 2,
"id_list": [
"be62d9c4-43ec-4dc6-8ca1-30b206eeed24",
"0f4b8add5cdd728a003bf5c83ed99dff"
]
}