Questions tagged [hoverfly]

An open source lightweight service virtualisation/API simulation tool for developers and testers

19 questions
3
votes
1 answer

How to mock webclient call to unit test in helidon mp project

Is there a way to mock a web client call from service to unit test it? Example call: Below fragment is for calling consul service from helidon application using webclient. It can be any kind of webclient call to external service. WebClientResponse…
3
votes
1 answer

Hoverfly: Custom JSON request body matcher matching specific parts

Is there a way in Hoverly-Java APIs to custom match a JSON request body? For instance, say I have this request body that my service will use { "name": "Tom", "age": 24, "timestamp": } I want to be able to skip the…
Higher-Kinded Type
  • 1,964
  • 5
  • 27
  • 44
1
vote
1 answer

How to install older hoverfly version using brew?

I am trying to install 0.7 version of hoverfly on my mac os. I am trying to use Homebrew for that. Command I am using is : brew install SpectoLabs/tap/hoverfly but this installing latest version. I would like to install older version. Can you…
Pramod S. Nikam
  • 4,271
  • 4
  • 38
  • 62
1
vote
1 answer

Hoverfly Ktor client Apache Kotlin

I tried to do unit test with Hoverfly to mock external API. companion object { @ClassRule @JvmField val hoverflyRule: HoverflyRule = HoverflyRule.inSimulationMode(dsl( service("people.zoho.com") …
Vinsiean
  • 13
  • 5
1
vote
1 answer

Use hoverfly proxy in Spring boot application restTemplate

I have a Spring Boot application that exposes a rest API which internally acts as a http client for an external rest API. My Junit test class is annotated with @SpringBootTest, so the application starts and expose their endpoints. I can use…
PRF
  • 821
  • 1
  • 9
  • 16
1
vote
1 answer

Hoverfly - capturing request & responses for micro services

I am trying to capture request & response from an application using Hoverfly. The Hoverfly is installed on a machine and set to proxy with capture mode. The application is a web application deployed in Weblogic in linux box. The application…
0
votes
0 answers

Simulate HTTPS API using Hoverfly

I am trying to simulate HTTPS API in Hoverfly but getting below error Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target I tried setting…
Doctor Who
  • 747
  • 1
  • 5
  • 28
0
votes
0 answers

Automatic swagger registration with Hoverfly

We have a use case to generate simulation using swagger in Hoverfly. I have gone through the manual upload process, however trying to find out if there is any automatic registration? If hoverfly is running on a system, how do we automate this…
user1318369
  • 715
  • 5
  • 15
  • 34
0
votes
1 answer

junit tests using hoverfly failing on arm macos with IllegalState

Trying to run my unit tests after migrating to an M2 MacBook I'm seeing this: IllegalState Could not start Hoverfly process and searching further in the log I find more info: [ERROR] net.openid.conformance.condition.client.FetchServerKeys_UnitTest …
JosephH
  • 37,173
  • 19
  • 130
  • 154
0
votes
1 answer

Hoverfly API Simulations with Golang repositories: how to get started

I have just started to experiment with Hoverfly and I have a Golang backend calling a number of 3rd party APIs for which I would need to create simulations. I am aware that Hoverfly has Java and Py bindings and I have come across a number of…
panza
  • 1,341
  • 7
  • 38
  • 68
0
votes
0 answers

Does this error mean grpc requests can't be accepted by proxy server?

I'm trying to route my grpc requests to a proxy instead of the actual server for some tests. I've set the JVM properties like: -Dhttps.proxyHost=localhost -Dhttps.proxyPort=8888 (which is where my proxy server runs - this is actually a Hoverfly…
Saturnian
  • 1,686
  • 6
  • 39
  • 65
0
votes
0 answers

How to add a proxy to grpcurl requests?

I have a service which serves requests over gRPC. I'm using Hoverfly for mocking that service in my tests. Ordinarily, I use grpcurl for gRPC requests on my terminal. But for these tests, I need to add a proxy to the gRPC requests so they can hit…
Saturnian
  • 1,686
  • 6
  • 39
  • 65
0
votes
1 answer

POD + Service Kubernetes Hoverfly

I am trying to deploy this configuration on a k8s cluster: apiVersion: v1 kind: ConfigMap metadata: name: simulations-test labels: mock-services: "true" data: simulations-test.json: | { "data":{ "pairs":[ …
0
votes
1 answer

How to match json path in Hoverfly matching strategy?

The jsonPath matching in hoverfly simulation file is "body" : [ { "matcher" : "jsonpath", "value" : "$[0].langId" } The above does not seem to work for the following request "Body": "[{\"langId\":\"en\",\"fallback\":\"true\"}]" Is this an issue ?…
CVA
  • 1,477
  • 1
  • 14
  • 23
0
votes
1 answer

Trusting Hoverfly java certificate programmatically

Using Hoverfly-java to mock web services in unit tests, and using HttpClient as web client, found that hoverfly proxy settings are propagated properly using useSystemProperties() however I still have TLS error: unknown certificate, I have to add…
Amr Lotfy
  • 2,937
  • 5
  • 36
  • 56
1
2