Skip to content

Commit

Permalink
Add unit tests for encoding in query path
Browse files Browse the repository at this point in the history
Signed-off-by: Farasath Ahamed <[email protected]>
  • Loading branch information
Farasath Ahamed committed Sep 10, 2024
1 parent 22af1e1 commit 66715d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestAuthorizeRequestFilter(t *testing.T) {
filterName: "opaAuthorizeRequest",
bundleName: "somebundle.tar.gz",
regoQuery: "envoy/authz/allow",
requestPath: "/allow-with-query?pass=yes&id=1&id=2",
requestPath: "/allow-with-query?pass=yes&id=1&id=2&msg=help%20me",
requestMethod: "GET",
contextExtensions: "",
expectedStatus: http.StatusOK,
Expand Down Expand Up @@ -411,6 +411,7 @@ func TestAuthorizeRequestFilter(t *testing.T) {
input.parsed_path = [ "allow-with-query" ]
input.parsed_query.pass == ["yes"]
input.parsed_query.id == ["1", "2"]
input.parsed_query.msg == ["help me"]
}
allow_context_extensions {
Expand Down

0 comments on commit 66715d3

Please sign in to comment.