spacewander commented on a change in pull request #5869:
URL: https://github.com/apache/apisix/pull/5869#discussion_r772797004
##########
File path: t/plugin/google-cloud-logging.t
##########
@@ -751,3 +751,56 @@ GET /hello
--- wait: 2
--- response_body
hello world
+
+
+
+=== TEST 26: set route (verify batch queue default params)
+--- config
+ location /t {
+ content_by_lua_block {
+
+ local config = {
+ uri = "/hello",
+ upstream = {
+ type = "roundrobin",
+ nodes = {
+ ["127.0.0.1:1980"] = 1
+ }
+ },
+ plugins = {
+ ["google-cloud-logging"] = {
+ auth_file =
"t/plugin/google-cloud-logging/config.json",
+ }
+ }
+ }
+
+ local expected = {
+ node = {
+ value = {
+ plugins = {
+ ["google-cloud-logging"] = {
+ max_retry_count = 0,
+ retry_delay = 1,
+ buffer_duration = 60,
+ batch_max_size = 1000,
+ inactive_timeout = 5,
+ }
+ }
+ }
+ }
+ }
+
+ local t = require("lib.test_admin").test
+ local code, body = t('/apisix/admin/routes/1', ngx.HTTP_PUT,
config, expected)
+
+ if code >= 300 then
+ ngx.status = code
+ ngx.say(body)
+ return
+ end
+
+ ngx.say(body)
+ }
+ }
+--- response_body
Review comment:
Let's split it into another test file when it's larger than 800 lines.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]