You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/09/18 06:47:30 UTC
[apisix] branch master updated: test: gzip test may fail because
size may be validated before number (#5097)
This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 46cabd6 test: gzip test may fail because size may be validated before number (#5097)
46cabd6 is described below
commit 46cabd6b9e1e76baf27c1f153e02ad9127894abe
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Sat Sep 18 14:47:26 2021 +0800
test: gzip test may fail because size may be validated before number (#5097)
---
t/plugin/gzip.t | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/t/plugin/gzip.t b/t/plugin/gzip.t
index e7582eb..c768831 100644
--- a/t/plugin/gzip.t
+++ b/t/plugin/gzip.t
@@ -512,6 +512,10 @@ Vary: upstream, Accept-Encoding
{input = {
buffers = {
number = 0,
+ }
+ }},
+ {input = {
+ buffers = {
size = 0,
}
}},
@@ -538,4 +542,5 @@ Vary: upstream, Accept-Encoding
{"error_msg":"failed to check the configuration of plugin gzip err: property \"comp_level\" validation failed: expected 10 to be smaller than 9"}
{"error_msg":"failed to check the configuration of plugin gzip err: property \"http_version\" validation failed: matches none of the enum values"}
{"error_msg":"failed to check the configuration of plugin gzip err: property \"buffers\" validation failed: property \"number\" validation failed: expected 0 to be greater than 1"}
+{"error_msg":"failed to check the configuration of plugin gzip err: property \"buffers\" validation failed: property \"size\" validation failed: expected 0 to be greater than 1"}
{"error_msg":"failed to check the configuration of plugin gzip err: property \"vary\" validation failed: wrong type: expected boolean, got number"}