baloo
baloo copied to clipboard
Expressive end-to-end HTTP API testing made easy in Go
Very nice library! But there is one drawback. Run this test ```go package baloo import ( "gopkg.in/h2non/baloo.v3" "testing" ) func Test(t *testing.T) { b := baloo.New("http://www.ya.ru") _ = b.Get(".").Expect(t).Status(11).Done() _...
This should make fixing regex pattern issues easier... to bubble up an error like this: https://play.golang.org/p/dubZiQ-HCN0
Add go 1.10.x & 1.11.x version for travis CI
I have several test cases that perform JSON asserations. However, I need to extract specific fields from a JSON response that will be used for subsequent business logic. How does...
When I provide: ``` t.Post("/v1/identifiers/druids"). SetHeader("Transfer-Encoding", "identity"). Expect(t). Status(200). Type("json"). JSON(map[string]string{"status": "OK"}). Done() ``` When I look at the packets (via wireshark) I see that my header has been overwritten...
The following request as a Get or Post will always return a 308 if I do not set the Body as nil. ```baseURL.Get(fmt.Sprintf("/v1/definition/stack/%s", stackID)). SetHeader("Authorization", bearerGithubToken()). Body(nil). Expect(t). Status(200). Done()```...
- fix line source code stackstrace in error (check log.go) - fix some compare data on error - fix missing refill body in JSON unmarshall - add VerifyJSON assert method...
```go baloo.New("http://test").Get("/foo").Expect(t).Cookie("Foo", "bar") ```
Signed-off-by: Abirdcfly
An issue that has been bothering me for a while is that when a status assertion (it can be other assertion as well) fails, the response is not printed. Most...