Skip to content

Commit

Permalink
tweak test expect for new jsonschema lib
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed Nov 27, 2020
1 parent 2308af8 commit 8ce4c12
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion t/admin/health-check.t
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ GET /t
GET /t
--- error_code: 400
--- response_body
{"error_msg":"invalid configuration: property \"upstream\" validation failed: property \"checks\" validation failed: property \"active\" validation failed: property \"healthy\" validation failed: property \"http_statuses\" validation failed: expected unique items but items 2 and 1 are equal"}
{"error_msg":"invalid configuration: property \"upstream\" validation failed: property \"checks\" validation failed: property \"active\" validation failed: property \"healthy\" validation failed: property \"http_statuses\" validation failed: expected unique items but items 1 and 2 are equal"}
--- no_error_log
[error]
Expand Down
2 changes: 1 addition & 1 deletion t/plugin/api-breaker.t
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ GET /t
GET /t
--- error_code: 400
--- response_body
{"error_msg":"failed to check the configuration of plugin api-breaker err: property \"healthy\" validation failed: property \"http_statuses\" validation failed: expected unique items but items 2 and 1 are equal"}
{"error_msg":"failed to check the configuration of plugin api-breaker err: property \"healthy\" validation failed: property \"http_statuses\" validation failed: expected unique items but items 1 and 2 are equal"}
--- no_error_log
[error]

Expand Down
4 changes: 2 additions & 2 deletions t/plugin/basic-auth.t
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ GET /t
--- request
GET /apisix/admin/schema/plugins/basic-auth
--- response_body
{"properties":{"disable":{"type":"boolean"}},"title":"work with route or service object","additionalProperties":false,"type":"object"}
{"title":"work with route or service object","additionalProperties":false,"properties":{"disable":{"type":"boolean"}},"type":"object"}
--- no_error_log
[error]

Expand All @@ -314,6 +314,6 @@ GET /apisix/admin/schema/plugins/basic-auth?schema_type=consumer
--- request
GET /apisix/admin/schema/plugins/basic-auth?schema_type=consumer123123
--- response_body
{"properties":{"disable":{"type":"boolean"}},"title":"work with route or service object","additionalProperties":false,"type":"object"}
{"title":"work with route or service object","additionalProperties":false,"properties":{"disable":{"type":"boolean"}},"type":"object"}
--- no_error_log
[error]
4 changes: 2 additions & 2 deletions t/plugin/hmac-auth.t
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ x-real-ip: 127.0.0.1
--- request
GET /apisix/admin/schema/plugins/hmac-auth
--- response_body
{"properties":{"disable":{"type":"boolean"}},"title":"work with route or service object","additionalProperties":false,"type":"object"}
{"title":"work with route or service object","additionalProperties":false,"properties":{"disable":{"type":"boolean"}},"type":"object"}
--- no_error_log
[error]

Expand All @@ -1282,7 +1282,7 @@ GET /apisix/admin/schema/plugins/hmac-auth?schema_type=consumer
--- request
GET /apisix/admin/schema/plugins/hmac-auth?schema_type=consumer123123
--- response_body
{"properties":{"disable":{"type":"boolean"}},"title":"work with route or service object","additionalProperties":false,"type":"object"}
{"title":"work with route or service object","additionalProperties":false,"properties":{"disable":{"type":"boolean"}},"type":"object"}
--- no_error_log
[error]

Expand Down

0 comments on commit 8ce4c12

Please sign in to comment.