httpexpect
httpexpect copied to clipboard
End-to-end HTTP and REST API testing for Go.
Hello, I'm using this package for e2e test runs on staging environment and I'm randomly getting `context canceled` error when I try running the below code. ```go client := httpexpect.New(T(),...
Hi, I have a function initializing the requests ``` func InitiateClients(t *testing.T) (*httpexpect.Expect, *httpexpect.Expect) { managementReq := httpexpect.New(t, UserCredentials.BaseApiUrl) managementAuth := managementReq.Builder(func(req *httpexpect.Request) { req.WithBasicAuth(UserCredentials.UserEmail, UserCredentials.UserToken) }) return managementReq, managementAuth...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.27.0 to 1.34.0. Release notes Sourced from github.com/valyala/fasthttp's releases. v1.34.0 59f94a3 Update github.com/klauspost/compress (#1237) (Mikhail Faraponov) 62c15a5 Don't reset RequestCtx.s (#1234) (Erik Dubbelboer) 7670c6e Fix windows tests...
currently TestRequestBodyMultipartFile expect the filename given by func (*multipartPart) FileName() string to be a fullpath in one of the test cases, however the documentation states that: > the filename is...
i test online example: ``` e := httpexpect.New(t, "https://api.mydomain.com") request := e.Get("/api/info") response := request.Expect() response.Status(200) log.Println(response.Body().Raw()) ``` now i want to test my cors rule, just like invoke api...
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.5.0 to 1.7.0. Release notes Sourced from github.com/gin-gonic/gin's releases. Release v1.7.0 BUGFIXES fix compile error from #2572 (#2600) fix: print headers without Authorization header on broken pipe...
Hi, Is there anyway to set multiple statuses as success criteria. e-g 200 and 404 as success criteria? The usecase is like deleting something from API let's just say a...
#### What am I using? - Web framework: Gin - Ide: vscode #### Go version go 1.16+ #### Repositorie [https://github.com/snowlyg/iris-admin](https://github.com/snowlyg/iris-admin) When I use [https://github.com/snowlyg/httptest](https://github.com/snowlyg/httptest) to test HTTP API and the...
#### What am I using? - Web framework: Gin - Ide: vscode #### Go version go 1.16+ #### Repositorie [https://github.com/snowlyg/iris-admin](https://github.com/snowlyg/iris-admin) When I use [https://github.com/snowlyg/httptest](https://github.com/snowlyg/httptest) to test HTTP API and the...