User Tools

Site Tools


devops:mock:hoverfly

This is an old revision of the document!


HoverFly

CA LISA

ServiceVirtualization tool. Like CA LISA: http://www.itko.com/solutions/service_virtualization.jsp

Hoverfly

Starting and logging in

hoverctl.exe start
hoverctl.exe login --username hfadmin --password hfpass

Enable proxy

To enable the proxy - you can proxy everything. You will just have to allow the traffic to the hoverfly running on port 8888, and to the frontend running on port 8500 or 4200.

Depending on the way, you started it- via a jar or via a “ng start”

Recording the traffic

Set the hoverfly into the “Capture mode”.

And recode the traffic, e.g. by navigating the REST api URLs manually.

Then export the strategy.json

hoverctl export simulation.json

Congratulation! You are now independent from the backend and may test the frontend - independently from backend.

By just importing the recorded actions

hoverctl import simulation.json

You can see the captured datasets under the GUI

how do I configure Ubuntu OS, to route all HTTP and HTTPS traffic via a HTTP proxy as a gateway?

Ideally one would not want to configure the application under test.

So we search for a proxification method, allowing to redirect HTTP, HTTPS traffic via a proxy transparently to the application.

Here https://github.com/SpectoLabs/hoverfly/issues/774 the tool *proxychains* is recommended.

@Deprecated https://github.com/haad/proxychains

Replacement https://github.com/rofl0r/proxychains-ng

sudo apt update
sudo apt install proxychains4

Configure the proxychain

sudo vim /etc/proxychains.conf

[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
http    127.0.0.1       8005

devops/mock/hoverfly.1687501911.txt.gz · Last modified: by skipidar