Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jmetertea
    @jmetertea
    Thank you
    Alexey
    @WouldYouKindly

    you’re not the first one asks for this feature, could you ceate a feature request on github please?

    Finally did it!

    Katia
    @kchiron
    Hello everyone, I have installed Hoverfly using Docker and it runs very well. The admin dashboard is up, I can use the API but... I can't reach the proxy server. I have started Hoverfly in mode webserver and then, imported all my simulations that I had previously caught. Everything worked well until this afternoon when my localhost:8500 returned empty replies. I restarted everything (docker, hoverfly, even my computer) but nothing changed. Do you have any advice ? I'm quite lost actually :).
    I also tried to remove and install again Hoverfly. Replies were sent in simulate mode but not in webserver mode.
    Tommy Situ
    @tommysitu
    @kchiron have you checked this admin API to see if the simulation is loaded: http://localhost:8888/api/v2/simulation
    Katia
    @kchiron
    @tommysitu yes I did and I see all my simulations. But, I think one of them causes the issue I have. When I delete all simulations using the API, and run hoverfly as a webserver, I got an Hoverfly error which is ok because there is nothing to match. And then, after importing all my simulations, I got an empty replie... I will capture again all my requests and store them individually in several files and see what happen...
    Katia
    @kchiron
    Hello everyone, does the "regex" request matcher work with the json body of the request ? I can use "jsonPartial" but it would be less accurate and can create conflicts furthermore.
    Maarten van den Ende
    @mjvdende_gitlab
    Hi I am trying to use hoverfly together with an app I am running on my mobile phone. I configured my phone to use hoverfly running on my laptop but it does not work. Any ideas?
    Is there some setting in hoverfly to allow remote connections or someting?
    Tommy Situ
    @tommysitu
    @kchiron yes you can use all the supported matchers in the body field
    @mjvdende_gitlab have you started hoverfly with the flag "-listen-on-host 0.0.0.0". Hoverfly by default bind to loopback interface only
    Katia
    @kchiron
    @tommysitu thank you for your answer. I've written "matcher": "regex" for the body and I've tried to write "value": "{\"destinationTownCode\": \"(FRCLI|FRNTE)\"}" and "value": "{\"destinationTownCode\": (FRCLI|FRNTE)}" (without quotation marks) and none of them have worked. Have I written the value part in the correct way?
    Tommy Situ
    @tommysitu
    Hoverfly accepts golang regex. Try this out: https://regex-golang.appspot.com/assets/html/index.html
    Maarten van den Ende
    @mjvdende_gitlab
    @tommysitu thanks
    Katia
    @kchiron
    @tommysitu thanks a lot, I will try this :)
    Andrei Savitski
    @aosavitski
    what is the best way to check the size of simulation that is currently in hoverfly?
    Tommy Situ
    @tommysitu
    @aosavitski you need to export it to a file. It would be nice the simulation API supports a HEAD request, and you can get the Content-Length without downloading the JSON.
    @aosavitski why do you need to check the size btw?
    rsehijpal
    @rsehijpal
    @tommysitu Is it possible to specify the matcher before the request is being captured? The use case here is, that I only want to match the request on path, and not on the body param.But when the requests are being captured, body param of post requests has matcher specified as exact, and thus I get a "No match found" error.
    Andrei Savitski
    @aosavitski
    @tommysitu under "size" I mean amount of pairs in simulation.
    Jonathan Vila
    @jonathanvila
    Hi
    I'm trying Hoverfly as a replacement for wiremock ( tired of issues with Spring Boot ) .... And I have 2 issues :
    • I dont see any logging when a request has been received
    • it works if I use RestTemplate to send a request, but not from Apache Camel endpoint using http4 -> java.net.UnknownHostException: hoverfly-service: Name or service not known at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    Tommy Situ
    @tommysitu
    Hi @jonathanvila regarding to your issues:
    1. You need to set the following configs to enable debug logging for now: HoverflyConfig.localConfigs().logToStdOut().addCommands("-log-level", "debug”). More info about logging can be found here: https://docs.hoverfly.io/projects/hoverfly-java/en/latest/pages/corefunctionality/configuration.html
    2. have you got an example code I can use to reproduce the error?
    This message was deleted
    Jonathan Vila
    @jonathanvila
    Hi @tommysitu . Yesterday afternoon I moved to mock-server as it has the callback feature, and it worked for RestTemplate and Camel without changing anything.
    But, I will search in git for my code from yesterday morning and I'll put here
    About the logging, I didnt do to add that command.... but I configured the package in Spring Boot yaml to DEBUG but it didnt work..... so, to show any request receiveid the log level must be debug ? in info level theres nothing logged from hoverfly ?
    Tommy Situ
    @tommysitu
    Only debug level will log the request. Alternatively, you can get all the request logs by calling hoverfly.getJournal()
    Info level will log, but if you are not using slf4j, you need to set HoverflyConfig.localConfigs().logToStdOut()
    Jonathan Vila
    @jonathanvila
    ok, thank you
    Nina Zhu
    @ninazhu_gitlab
    Hi, can someone help me with some confusion I have around the REST API provided by hoverfly? For example, I am running as a webserver in simulation mode, and the simulations work. I can't seem to use any of the calls here (https://hoverfly.readthedocs.io/en/latest/pages/reference/api/api.html) - I just get the standard matching error
    Tommy Situ
    @tommysitu
    @ninazhu_gitlab you can reach the admin API on http://localhost:8888, run hoverctl status will show you all the port numbers.
    Nina Zhu
    @ninazhu_gitlab
    @tommysitu thank you!
    henry_ken
    @henry_ken_twitter
    Hi, what is the concurrency limit of the hoverfly webserver?
    any configuration to set the number of concurrent thread/process?
    John Davenport
    @JohnFDavenport
    I’m not sure. Have you hit a limit?
    John Davenport
    @JohnFDavenport
    I suspect you’ll saturate the CPU before the Hoverfly process has a problem.
    This assumes small simulations with relatively few requests and responses. And no middleware!
    henry_ken
    @henry_ken_twitter
    what is the concurrency model? one request one thread?
    John Davenport
    @JohnFDavenport
    It’s Go. Goroutines.
    Vividh S Viswanatha
    @vividhsv
    I see some of the requests and response pair is not being captured during capture mode through chrome browser proxy...Not really sure why body on these request are different though they are to the same url
    any idea what going on here
    Nikhil Varghese
    @nkvp
    Hi guys, in hoverfly webserver modify mode, how do we set the end - destination of the requests being received i.e the url of the service being mocked?
    Tommy Situ
    @tommysitu
    @nkvp Hoverfly running as webserver only support simulate mode
    Siraj K
    @sirajka

    Hi, I am testing Hoverfly on a Dropwizard microservice. I am using SOAPUI to invoke API and configured SOAPUI proxy with host:localhost and port:8500. I am getting the following error:
    Hoverfly Error!

    There was an error when forwarding the request to the intended destination

    Got error: Post https://localhost:3198/VR_WebService: x509: certificate is valid for my.web.site, not localhost

    Siraj K
    @sirajka

    nm, i was able to get past it using:

    hoverfly -generate-ca-cert -tls-verification=false -capture

    Tommy Situ
    @tommysitu
    if you are proxying a localhost with self-signed cert, then yes you need to turn off the tls verification
    Siraj K
    @sirajka
    hello, i would like to deploy hoverfly to our kubernetes cluster. Since we don't use helm, is there a way to get a deployment yaml?
    Tommy Situ
    @tommysitu
    @sirajka you can find the deployment yaml here: https://github.com/helm/charts/tree/master/incubator/hoverfly
    Siraj K
    @sirajka
    @tommysitu thank you, i saw that but idk how to go about it