Skip to content

Commit 2ea4306

Browse files
author
Karolis Rusenas
committed
Merge pull request #49 from SpectoLabs/develop
Develop
2 parents ef92f86 + 60de56e commit 2ea4306

File tree

5 files changed

+11
-83
lines changed

5 files changed

+11
-83
lines changed

Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ MAINTAINER karolis.rusenas@opencredo.com
44

55
ADD . /go/src/github.com/spectolabs/hoverfly
66

7-
# provide redis connection details
8-
# ENV RedisAddress=redis
9-
# ENV RedisPassword=redis_pass
10-
117
ENV GO15VENDOREXPERIMENT 1
128

139
RUN go install github.com/spectolabs/hoverfly

Vagrantfile

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

docker-compose.yml

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

readme.md

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,19 @@
55
Using Hoverfly, you can virtualize your application dependencies to create a self-contained development or test environment.
66

77
Hoverfly is a proxy written in [Go](https://github.com/golang/go). It can capture HTTP(s) traffic between an application under test
8-
and external services, and then replace the external services. Another powerful feature: middleware modules, where users
8+
and external services, and then replace the external services. Another powerful feature: middleware modules, where users
99
can introduce their own custom logic. **Middleware modules can be written in any language**.
1010

1111
More information about Hoverfly and how to use it:
1212
* https://www.specto.io/speeding-up-your-slow-dependencies/
1313
* https://www.specto.io/service-virtualization-modifying-traffiic/
14+
* https://www.specto.io/api-mocking-for-dev-and-e2e-testing-from-zero-to-hero/
1415

1516
## Installation
1617

17-
### Vagrant
18-
19-
If you have [Vagrant](https://www.vagrantup.com/), it's as simple as
20-
21-
vagrant up
22-
23-
The Vagrant provisioning script will start hoverfly in the background in ["virtualize" mode](#virtualize), pass the logging output to "hoverfly.log" and save the Hoverfly PID into a file ("hoverfly_pid"). So if you ssh into the Vagrant box, you can examine the "hoverfly.log" file, and you kill the Hoverfly process easily with:
24-
25-
kill -SIGTERM $(cat hoverfly_pid)
26-
2718
### Build it yourself
2819

29-
Use [Glide](https://github.com/Masterminds/glide) to fetch the dependencies (or you can also use _git submodule init_) with:
20+
Use [Glide](https://github.com/Masterminds/glide) to fetch the dependencies (or you can also use _git submodule init_) with:
3021

3122
glide up
3223

@@ -37,17 +28,17 @@ Then build Hoverfly:
3728
And run it:
3829

3930
./hoverfly
40-
31+
4132
### Pre-built binary
4233

4334
Pre-built Hoverfly binaries are available [here](https://github.com/SpectoLabs/hoverfly/releases/).
44-
You may find it easier to download a binary - however since the Hoverfly admin UI requires static files you will need
35+
You may find it easier to download a binary - however since the Hoverfly admin UI requires static files you will need
4536
to clone the Hoverfly repo first, and then copy the binary to the Hoverfly directory before executing it.
46-
37+
4738
## Admin UI
4839

49-
The Hoverfly admin UI is available at [http://localhost:8888/](http://localhost:8888/). It uses the [API](api)
50-
(as described below) to change state. It also allows you to wipe the captured requests/responses and shows the number
40+
The Hoverfly admin UI is available at [http://localhost:8888/](http://localhost:8888/). It uses the API
41+
(as described below) to change state. It also allows you to wipe the captured requests/responses and shows the number
5142
of captured records. For other functions, such as export/import, you can use the API directly.
5243

5344
## Hoverfly is a proxy
@@ -65,7 +56,7 @@ You can specify which site to capture or virtualize with a regular expression (b
6556
## Modes (Virtualize / Capture / Synthesize / Modify)
6657

6758
Hoverfly has different operating modes. Each mode changes the behavior of the proxy. Based on the selected mode, Hoverfly can
68-
either capture the requests and responses, look for them in the cache, or send them directly to the middleware and
59+
either capture the requests and responses, look for them in the cache, or send them directly to the middleware and
6960
respond with a payload that is generated by the middleware (more on middleware below).
7061

7162
### Virtualize
@@ -74,7 +65,7 @@ By default, the proxy starts in virtualize mode. You can apply middleware to eac
7465

7566
### Capture
7667

77-
When capture mode is active, Hoverfly acts as a "man-in-the-middle". It makes requests on behalf of a client and records
68+
When capture mode is active, Hoverfly acts as a "man-in-the-middle". It makes requests on behalf of a client and records
7869
the responses. The response is then sent back to the original client.
7970

8071
To switch to capture mode, you can add the "--capture" flag during startup:
@@ -113,7 +104,7 @@ The example below changes the destination host to "mirage.readthedocs.org" and s
113104
Add ca.pem to your trusted certificates or turn off verification. With curl you can make insecure requests with -k:
114105

115106
curl https://www.bbc.co.uk --proxy http://localhost:8500 -k
116-
107+
117108

118109
## API
119110

vendor/github.com/garyburd/redigo

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)