monkeyDluffy6017 commented on code in PR #9526:
URL: https://github.com/apache/apisix/pull/9526#discussion_r1208749840
##########
t/plugin/splunk-hec-logging.t:
##########
@@ -383,12 +361,28 @@ the mock backend is hit
location /t {
content_by_lua_block {
local t = require("lib.test_admin").test
+ local code, body =
t('/apisix/admin/plugin_metadata/splunk-hec-logging',
+ ngx.HTTP_PUT,
+ [[{
+ "log_format": {
+ "host": "$host",
+ "@timestamp": "$time_iso8601",
+ "vip": "$remote_addr",
+ "message_3":"test batched data"
+ }
+ }]]
+ )
+ if code >= 300 then
+ ngx.status = code
+ ngx.say(body)
+ return
+ end
Review Comment:
need a blank
--
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]