Skip to content

Commit

Permalink
test: update sanity cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 committed Jun 9, 2022
1 parent bbbbbdb commit 73d7e89
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions t/plugin/response-rewrite2.t
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ __DATA__
replace = "m",
},
}},
{},
{filters = {}},
{filters = {
{regex = "l"},
Expand All @@ -92,15 +91,14 @@ __DATA__
end
}
}
--- response_body
done
--- response_body eval
qr/done
done
value should match only one schema, but matches both schemas 1 and 2
value should match only one schema, but matches none
failed to validate dependent schema for "filters|body": value wasn't supposed to match schema
property "filters" validation failed: expect array to have at least 1 items
property "filters" validation failed: failed to validate item 1: property "replace" is required
property "filters" validation failed: failed to validate item 1: property "regex" validation failed: string too short, expected at least 1, got 0
property "filters" validation failed: failed to validate item 1: property "scope" validation failed: matches none of the enum values
property "filters" validation failed: failed to validate item 1: property "scope" validation failed: matches none of the enum values/
Expand Down

0 comments on commit 73d7e89

Please sign in to comment.