I am using httpexpect version 2.16.0 to test one of our endpoints that wants a url-encoded path.
It looks something like this
path := "some:data/thats/encoded@0.1.0
urlEncoded := url.QueryEscape(path)
e.GET("/data/{urlEncoded}").
WithPath("urlEncoded", urlEncoded).
Expect().
Status(http.StatusOK)
httpexpect fails with the following output
GET /data/some%!A(MISSING)data%!F(MISSING)thats%!F(MISSING)encoded%!.(MISSING)0 HTTP/1.1
Any ideas on what I am doing wrong?
I am using httpexpect version 2.16.0 to test one of our endpoints that wants a url-encoded path.
It looks something like this
httpexpect fails with the following output
Any ideas on what I am doing wrong?