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

This commit is contained in:
Fu Diwei 2021-08-06 00:29:17 +08:00
parent 035f25d5a9
commit 1df5a19200
16 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{
"funcname": "testfunc",
"envs": [ "test-env1", "test-env2" ],
"triggers": [
{
"trigger_name": "trigger_name1",
"type": "Timer",
"config": "0 0 2 2 * * *"
}
]
}

View File

@ -0,0 +1,10 @@
{
"errcode": 0,
"errmsg": "ok",
"err_list": [
{
"env": "test-env2",
"errmsg": "can't find the env"
}
]
}

View File

@ -0,0 +1,5 @@
{
"functionname": "testfunc",
"envs": [ "dev-3gewtf9c10f60c76", "mytestenv-7gniuaq95b51dcdc", "mytestenv-7gniuaq95b51dcdc22" ],
"zipfile": "UEsDBBQACAAIALB+WU4AAAAAAAAAAAAAAAAIABAAaW5kZXguanNVWAwAAZ9zXPuec1z1ARQAdY7BCsIwEETv+Yoll6ZQ+wOhnv0DD+IhxkWC664kWwmI/27V3IpzGuYNw3RzQSiaU9TOG6x3yVrGW0gMEzh8IOsAUVixfkwgOoV47WHawtPAooUVIRxJLs7ukEhgL5nOtl/h79qf+GBZeIM1FbXHdac9aKC9cDwTDfCb9eblzRtQSwcI6+pcr4AAAADOAAAAUEsBAhUDFAAIAAgAsH5ZTuvqXK+AAAAAzgAAAAgADAAAAAAAAAAAQKSBAAAAAGluZGV4LmpzVVgIAAGfc1z7nnNcUEsFBgAAAAABAAEAQgAAAMYAAAAAAA=="
}

View File

@ -0,0 +1,5 @@
{
"functionname": "testfunc",
"envs": [ "dev-3gewtf9c10f60c76", "mytestenv-7gniuaq95b51dcdc", "mytestenv-7gniuaq95b51dcdc22" ],
"zipfile": "UEsDBBQACAAIALB+WU4AAAAAAAAAAAAAAAAIABAAaW5kZXguanNVWAwAAZ9zXPuec1z1ARQAdY7BCsIwEETv+Yoll6ZQ+wOhnv0DD+IhxkWC664kWwmI/27V3IpzGuYNw3RzQSiaU9TOG6x3yVrGW0gMEzh8IOsAUVixfkwgOoV47WHawtPAooUVIRxJLs7ukEhgL5nOtl/h79qf+GBZeIM1FbXHdac9aKC9cDwTDfCb9eblzRtQSwcI6+pcr4AAAADOAAAAUEsBAhUDFAAIAAgAsH5ZTuvqXK+AAAAAzgAAAAgADAAAAAAAAAAAQKSBAAAAAGluZGV4LmpzVVgIAAGfc1z7nnNcUEsFBgAAAAABAAEAQgAAAMYAAAAAAA=="
}

View File

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

View File

@ -0,0 +1,4 @@
{
"functionname": "getwxcode",
"env": "test-env-6gni9ity244a6ea3"
}

View File

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

View File

@ -0,0 +1,3 @@
{
"env": "myttest-8gu57so0bd9f9e8a"
}

View File

@ -0,0 +1,28 @@
{
"errcode": 0,
"errmsg": "ok",
"total_count": 2,
"functions": [
{
"mod_time": "2021-07-29 15:04:19",
"add_time": "2021-07-29 15:04:19",
"runtime": "Nodejs8.9",
"name": "testfunc5",
"status": "CreateFailed",
"status_reason": [
{
"errcode": "ResourceNotFound.File",
"errmsg": "未找到函数执行入口文件,请确认代码包入口文件名和 handler 设置是否对应或代码压缩包是否正常。"
}
]
},
{
"mod_time": "2021-07-29 14:41:43",
"add_time": "2021-07-29 14:41:43",
"runtime": "Nodejs8.9",
"name": "testfunc4",
"status": "Active",
"status_reason": []
}
]
}

View File

@ -0,0 +1,4 @@
{
"funcname": "testfunc",
"env": "test-env1"
}

View File

@ -0,0 +1,11 @@
{
"errcode": 0,
"errmsg": "ok",
"triggers": [
{
"trigger_name": "myTrigger",
"config": "0 0 2 1 * * *",
"type": "timer"
}
]
}

View File

@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "ok",
"resp_data": "{\"event\":{\"userInfo\":{\"appId\":\"SAMPLE_APPID\"}},\"appid\":\"SAMPLE_APPID\"}"
}

View File

@ -0,0 +1,20 @@
{
"env": "myttest-8gu57so0bd9f9e8a",
"functionname": "testfunc1",
"memorysize": 512,
"timeout": 2,
"environment_variables": [
{
"key": "test",
"value": "true"
}
],
"public_net_config": {
"public_net_status": "DISABLE",
"eip_status": "DISABLE"
},
"vpc_config": {
"vpcid": "vpc-a9ejy7oi",
"subnetid": "subnet-oqw8aqbd"
}
}

View File

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