Skip to content

Commit

Permalink
fix test case 'auth configure undefined'
Browse files Browse the repository at this point in the history
  • Loading branch information
qizhendong committed Jan 30, 2022
1 parent e0b5f3d commit 27995aa
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions t/plugin/clickhouse-logger.t
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ run_tests();
__DATA__
=== TEST 1: Full configuration verification
--- yaml_config
plugins:
- clickhouse-logger
--- config
location /t {
content_by_lua_block {
Expand Down Expand Up @@ -86,6 +89,9 @@ passed
=== TEST 2: Basic configuration verification
--- yaml_config
plugins:
- clickhouse-logger
--- config
location /t {
content_by_lua_block {
Expand All @@ -110,6 +116,9 @@ passed
=== TEST 3: auth configure undefined
--- yaml_config
plugins:
- clickhouse-logger
--- config
location /t {
content_by_lua_block {
Expand All @@ -128,12 +137,14 @@ passed
end
}
}
--- response_body
{"error_msg":"failed to check the configuration of plugin clickhouse-logger err: property \"endpoint_addr\" is required"}
--- response_body eval
qr/\{"error_msg":"failed to check the configuration of plugin clickhouse-logger err: property \\"endpoint_addr\\" is required"\}/
=== TEST 4: add plugin on routes
--- yaml_config
plugins:
- clickhouse-logger
--- config
location /t {
content_by_lua_block {
Expand Down

0 comments on commit 27995aa

Please sign in to comment.