diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbCreateFunctionRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbCreateFunctionRequest.json new file mode 100644 index 00000000..ce7c9095 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbCreateFunctionRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test-777bb9", + "function_name": "function1" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbCreateFunctionResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbCreateFunctionResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbCreateFunctionResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDownloadFunctionRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDownloadFunctionRequest.json new file mode 100644 index 00000000..47ba569b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDownloadFunctionRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test-777bb9", + "function_name": "login" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDownloadFunctionResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDownloadFunctionResponse.json new file mode 100644 index 00000000..920fee44 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDownloadFunctionResponse.json @@ -0,0 +1,6 @@ +{ + "errcode": 0, + "errmsg": "ok", + "url": "https:\/\/lambdash-1253665810.cos.ap-shanghai.myqcloud.com\/1258717764\/qbasetest-a5c40e\/login\/login_LATEST.zip?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDqbBtfGe4eSSK8CExGjmC0e8Qcnswv6yj%26q-sign-time%3D1562247164%3B1562257224%26q-key-time%3D1562247164%3B1562257224%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3Dfd43be65f7381293315269dbf18cd99e143fab48&response-content-type=application\/octet-stream", + "checksum": "bf657f327e477652d137b45b08b6400ab16947b4aaf92e2b04a5fbe5a4582b46" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCodeSecretRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCodeSecretRequest.json new file mode 100644 index 00000000..22fdca1b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCodeSecretRequest.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCodeSecretResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCodeSecretResponse.json new file mode 100644 index 00000000..59e8b69d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetCodeSecretResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "codesecret": "t44gXCQQdVCFcMWKrCsSwQ5uV94Op3HiqoZQ1H972pyMBfVgvnAeUGN2vm5Xx07\/" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetFunctionConfigRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetFunctionConfigRequest.json new file mode 100644 index 00000000..390c781d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetFunctionConfigRequest.json @@ -0,0 +1,5 @@ +{ + "type": 1, + "env": "test-777bb9", + "function_name": "openapi" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetFunctionConfigResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetFunctionConfigResponse.json new file mode 100644 index 00000000..55c7e52e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetFunctionConfigResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "config": "{\"permissions\":{\"openapi\":[\"wxacode.get\",\"wxacode.getUnlimited\",\"templateMessage.send\",\"templateMessage.addTemplate\",\"templateMessage.deleteTemplate\",\"templateMessage.getTemplateList\",\"templateMessage.getTemplateLibraryById\",\"templateMessage.getTemplateLibraryList\"]}}" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetUploadSignatureRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetUploadSignatureRequest.json new file mode 100644 index 00000000..766dd9d2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetUploadSignatureRequest.json @@ -0,0 +1,3 @@ +{ + "hashed_payload": "lowercase_sha256hex_payload" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetUploadSignatureResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetUploadSignatureResponse.json new file mode 100644 index 00000000..7d130f5c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbGetUploadSignatureResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "headers": "Authorization:TC3-HMAC-SHA256 Credential=AKIDNS5S-8S5Y7dxxv8lOPYPqu7XqNM3XUTG6QUxv2B-zkIcRG0XziWdsvpzzzzzzz/2019-05-28/scf/tc3_request, SignedHeaders=content-type;host, Signature=096dad0a5a5563381458224f38c1b8f35c8e2d5a8451950e33e36fa856fe9cd2\r\nHost:scf.tencentcloudapi.com\r\nContent-Type:application/json\r\nX-TC-Action:UpdateFunctionCode\r\nX-TC-Timestamp:1559046811\r\nX-TC-Version:2018-04-16\r\nX-TC-Region:ap-shanghai\r\nX-TC-Token:TOKEN" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbInvokeCloudFunctionRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbInvokeCloudFunctionRequest.json new file mode 100644 index 00000000..22fdca1b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbInvokeCloudFunctionRequest.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbInvokeCloudFunctionResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbInvokeCloudFunctionResponse.json new file mode 100644 index 00000000..2749b72c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbInvokeCloudFunctionResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "resp_data": "{\"event\":{\"userInfo\":{\"appId\":\"SAMPLE_APPID\"}},\"appid\":\"SAMPLE_APPID\"}" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbListFunctionsRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbListFunctionsRequest.json new file mode 100644 index 00000000..05c41b96 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbListFunctionsRequest.json @@ -0,0 +1,5 @@ +{ + "env": "test-777bb9", + "limit": 20, + "offset": 0 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbListFunctionsResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbListFunctionsResponse.json new file mode 100644 index 00000000..f5b62729 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbListFunctionsResponse.json @@ -0,0 +1,14 @@ +{ + "errcode": 0, + "errmsg": "ok", + "total_count": 1, + "functions": [ + { + "mod_time": "2019-06-21 15:23:54", + "add_time": "2019-02-27 15:34:59", + "runtime": "Nodejs8.9", + "name": "login", + "status": "Active" + } + ] +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadFunctionConfigRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadFunctionConfigRequest.json new file mode 100644 index 00000000..08b18258 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadFunctionConfigRequest.json @@ -0,0 +1,6 @@ +{ + "type": 3, + "env": "env_id", + "function_name": "func", + "config": "{\"timeout\":5}" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadFunctionConfigResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadFunctionConfigResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUploadFunctionConfigResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file