19 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
58
views
Hoverfly Proxy setting not working with Spring WebClient
I am trying to mock the responses using hoverfly, but it not working with webclient. Same setup works if i switch to RestTemplate for service calls and i am using following webclient configs.
@Bean
...
1
vote
1
answer
92
views
How to use the AWS CRT HTTP Client with Hoverfly?
I would like to implement the AwsCrtHttpClient and intercept the HTTP requests in the unit tests with Hoverfly, but Hoverfly is not intercepting the requests. The client is initialized like: private ...
3
votes
1
answer
398
views
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 ...
0
votes
1
answer
401
views
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....
0
votes
1
answer
265
views
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 ...
panza's user avatar
- 1,461
0
votes
0
answers
646
views
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 ...
1
vote
0
answers
2k
views
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 ...
0
votes
1
answer
626
views
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: |
{...
0
votes
1
answer
956
views
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\":\"...
0
votes
1
answer
806
views
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 ...
3
votes
1
answer
963
views
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": <unix ...
0
votes
1
answer
221
views
Install Hoverfly in windows without Docker/Kubernetes
Looking at Hoverfly installation it describe how to install using Docker or Homebrew or Kubernetes
I don't use micro services and don't have/use Docker/Homebrew/Kubernetes
Can I still use Hoverfly ...
0
votes
1
answer
88
views
how to programmatically invalidate captured simulation stubs dynamically
I am using hoverfly for service virtualization purpose for testing our microservices. In a particular scenario when a service endpoint response is changed (contractually) for eg: the format of date is ...
0
votes
1
answer
1k
views
Hoverfly does not intercept my own defined host in destination
When I start hoverfly in simulate mode (or as a webserver, it doesn't matter) and define some destination then I must do request via proxy (or straight to localhost:8500 in case of webserver).
Is ...
0
votes
0
answers
1k
views
Configure proxy for RestTemplate using JVM arguments
I am integrating hoverfly as proxy server for my spring boot application.
This application calls other REST APIs and I want to capture the request and response and later use that in simulate mode for ...