Skip to content

Commit c14631c

Browse files
committed
lighter and update all deps
1 parent 4cfa969 commit c14631c

33 files changed

+38
-1711
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: go
22
sudo: false
33

44
go:
5-
- 1.12.x
65
- 1.14.x
76

87
env:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ tidy:
1818
mv _examples examples && ( \
1919
cd examples ; \
2020
go mod tidy -v ; \
21-
go get -v -u=patch github.com/gavv/httpexpect ; \
21+
go get -v -u=patch github.com/iris-contrib/httpexpect ; \
2222
) && mv examples _examples

README.md

Lines changed: 5 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# httpexpect [![GoDoc](https://godoc.org/github.com/gavv/httpexpect?status.svg)](https://godoc.org/github.com/gavv/httpexpect) [![Travis](https://img.shields.io/travis/gavv/httpexpect.svg)](https://travis-ci.org/gavv/httpexpect) [![Coveralls](https://coveralls.io/repos/github/gavv/httpexpect/badge.svg?branch=master)](https://coveralls.io/github/gavv/httpexpect?branch=master)
1+
# httpexpect [![GoDoc](https://godoc.org/github.com/iris-contrib/httpexpect?status.svg)](https://godoc.org/github.com/iris-contrib/httpexpect) [![Travis](https://img.shields.io/travis/iris-contrib/httpexpect.svg)](https://travis-ci.org/iris-contrib/httpexpect) [![Coveralls](https://coveralls.io/repos/github/iris-contrib/httpexpect/badge.svg?branch=master)](https://coveralls.io/github/iris-contrib/httpexpect?branch=master)
22

33
Concise, declarative, and easy to use end-to-end HTTP and REST API testing for Go (golang).
44

@@ -48,7 +48,7 @@ Workflow:
4848

4949
##### Tuning
5050

51-
* Tests can communicate with server via real HTTP client or invoke `net/http` or [`fasthttp`](https://github.com/valyala/fasthttp/) handler directly.
51+
* Tests can communicate with server via real HTTP client or invoke `net/http` handler directly.
5252
* Custom HTTP client, logger, printer, and failure reporter may be provided by user.
5353
* Custom HTTP request factory may be provided, e.g. from the Google App Engine testing.
5454

@@ -61,51 +61,21 @@ The current stable branch is `v2`. Previous branches are still maintained, but n
6161
If you're using go.mod, use a versioned import path:
6262

6363
```go
64-
import "github.com/gavv/httpexpect/v2"
65-
```
66-
67-
Otherwise, use gopkg.in import path:
68-
69-
```go
70-
import "gopkg.in/gavv/httpexpect.v2"
64+
import "github.com/iris-contrib/httpexpect/v2"
7165
```
7266

7367
## Documentation
7468

75-
Documentation is available on [GoDoc](https://godoc.org/github.com/gavv/httpexpect). It contains an overview and reference.
69+
Documentation is available on [GoDoc](https://godoc.org/github.com/iris-contrib/httpexpect). It contains an overview and reference.
7670

7771
## Examples
7872

7973
See [`_examples`](_examples) directory for complete standalone examples.
8074

81-
* [`fruits_test.go`](_examples/fruits_test.go)
82-
83-
Testing a simple CRUD server made with bare `net/http`.
84-
8575
* [`iris_test.go`](_examples/iris_test.go)
8676

8777
Testing a server made with [`iris`](https://github.com/kataras/iris/) framework. Example includes JSON queries and validation, URL and form parameters, basic auth, sessions, and streaming. Tests invoke the `http.Handler` directly.
8878

89-
* [`echo_test.go`](_examples/echo_test.go)
90-
91-
Testing a server with JWT authentication made with [`echo`](https://github.com/labstack/echo/) framework. Tests use either HTTP client or invoke the `http.Handler` directly.
92-
93-
* [`gin_test.go`](_examples/gin_test.go)
94-
95-
Testing a server utilizing the [`gin`](https://github.com/gin-gonic/gin) web framework. Tests invoke the `http.Handler` directly.
96-
97-
* [`fasthttp_test.go`](_examples/fasthttp_test.go)
98-
99-
Testing a server made with [`fasthttp`](https://github.com/valyala/fasthttp) package. Tests invoke the `fasthttp.RequestHandler` directly.
100-
101-
* [`websocket_test.go`](_examples/websocket_test.go)
102-
103-
Testing a WebSocket server based on [`gorilla/websocket`](https://github.com/gorilla/websocket). Tests invoke the `http.Handler` or `fasthttp.RequestHandler` directly.
104-
105-
* [`gae_test.go`](_examples/gae_test.go)
106-
107-
Testing a server running under the [Google App Engine](https://en.wikipedia.org/wiki/Google_App_Engine).
108-
10979
## Quick start
11080

11181
##### Hello, world!
@@ -118,7 +88,7 @@ import (
11888
"net/http/httptest"
11989
"testing"
12090

121-
"github.com/gavv/httpexpect/v2"
91+
"github.com/iris-contrib/httpexpect/v2"
12292
)
12393

12494
func TestFruits(t *testing.T) {
@@ -440,17 +410,6 @@ e := httpexpect.WithConfig(httpexpect.Config{
440410
Jar: httpexpect.NewJar(),
441411
},
442412
})
443-
444-
// invoke fasthttp.RequestHandler directly using httpexpect.FastBinder
445-
var handler fasthttp.RequestHandler = myHandler()
446-
447-
e := httpexpect.WithConfig(httpexpect.Config{
448-
Reporter: httpexpect.NewAssertReporter(t),
449-
Client: &http.Client{
450-
Transport: httpexpect.NewFastBinder(handler),
451-
Jar: httpexpect.NewJar(),
452-
},
453-
})
454413
```
455414

456415
##### Per-request client or handler

_examples/doc.go

Lines changed: 0 additions & 2 deletions
This file was deleted.

_examples/echo.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

_examples/echo_test.go

Lines changed: 0 additions & 87 deletions
This file was deleted.

_examples/fasthttp.go

Lines changed: 0 additions & 23 deletions
This file was deleted.

_examples/fasthttp_test.go

Lines changed: 0 additions & 29 deletions
This file was deleted.

_examples/fruits.go

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)