devops:mock:hoverfly
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devops:mock:hoverfly [2023/06/23 06:35] – skipidar | devops:mock:hoverfly [2023/11/01 07:15] (current) – ↷ Page moved from camunda:devops:mock:hoverfly to devops:mock:hoverfly skipidar | ||
---|---|---|---|
Line 5: | Line 5: | ||
Like CA LISA: http:// | Like CA LISA: http:// | ||
+ | Microservices and " | ||
+ | https:// | ||
=== Hoverfly === | === Hoverfly === | ||
Line 15: | Line 17: | ||
- | DOcumentation: https:// | + | Documentation: https:// |
Repository: https:// | Repository: https:// | ||
Line 23: | Line 25: | ||
- | === Starting | + | === Starting |
- | <code> | + | <sxh js> |
- | hoverctl.exe start | + | |
- | hoverctl.exe login --username | + | # start |
- | </code> | + | hoverfly \ |
+ | -ap 8006 \ | ||
+ | -pp 8005 \ | ||
+ | -username " | ||
+ | -password " | ||
+ | -listen-on-host 0.0.0.0 \ | ||
+ | -logs-file "/ | ||
+ | |||
+ | # start on windows | ||
+ | .\hoverfly ` | ||
+ | -ap 8888 ` | ||
+ | -pp 8005 ` | ||
+ | -username | ||
+ | -password | ||
+ | -listen-on-host 0.0.0.0 ` | ||
+ | -logs-file "/ | ||
+ | </sxh> | ||
=== Enable proxy === | === Enable proxy === | ||
Line 47: | Line 65: | ||
{{https:// | {{https:// | ||
- | And recode | + | And record |
Then export the strategy.json | Then export the strategy.json | ||
+ | |||
< | < | ||
hoverctl export simulation.json | hoverctl export simulation.json | ||
Line 81: | Line 100: | ||
Replacement | Replacement | ||
https:// | https:// | ||
+ | |||
+ | |||
+ | == Install proxychains == | ||
<sxh shell> | <sxh shell> | ||
Line 88: | Line 110: | ||
- | Configure the proxychain | + | == Configure the proxychain |
**sudo vim / | **sudo vim / | ||
Line 159: | Line 181: | ||
</ | </ | ||
+ | |||
+ | *note* : | ||
+ | |||
+ | " | ||
+ | |||
+ | |||
+ | == Make the OS trust the hoverfly CA certificate == | ||
+ | |||
+ | Add it to the trusted certificates https:// | ||
<sxh shell> | <sxh shell> | ||
- | proxychains curl -iv https://google.com | + | # get the hoverfly cert |
+ | wget https://raw.githubusercontent.com/ | ||
+ | |||
+ | sudo apt-get install -y ca-certificates | ||
+ | sudo cp / | ||
+ | sudo update-ca-certificates | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | == Call some URL with proxy in the middle == | ||
+ | |||
+ | Now you can make " | ||
+ | |||
<sxh shell> | <sxh shell> | ||
proxychains curl -iv https:// | proxychains curl -iv https:// | ||
+ | |||
+ | |||
[proxychains] config file found: / | [proxychains] config file found: / | ||
[proxychains] preloading / | [proxychains] preloading / |
devops/mock/hoverfly.1687502157.txt.gz · Last modified: by skipidar