Skip to main content

Questions tagged [mockserver]

The tag has no usage guidance, but it has a tag wiki.

mockserver
0 votes
0 answers
26 views

MockServer with Helm/Kubernetes and random UUID in response

I have a question for using MockServer with Helm & Kubernetes using the instructions here. However, I would like add more configurability using either class callbacks or an expectation initializer ...
sdbol's user avatar
  • 413
0 votes
1 answer
46 views

Forward request from mockServer to wiremock in Docker

Just started learning about mocks and I am trying to figure it out. I have wiremock in Docker and mockServer in Docker.(mock-server.com). Each has simple test requests. /hello returns the string hello....
Alexander Wang's user avatar
0 votes
0 answers
59 views

Experiencing high latency and CPU utilization when expectations size is large on mockserver

I'm a backend developer. I've been utilizing mock server extensively to facilitate testing of my backend services by returning specific dummy responses. However, I've encountered latency and CPU ...
Vijay Joshi's user avatar
0 votes
0 answers
40 views

Need some extra pointers on maximizing single instance performance in mockserver

Description: I'm a backend developer in a company. I've been utilizing a mockserver extensively to facilitate testing of my backend services by returning specific dummy responses. However, I've ...
Vijay Joshi's user avatar
0 votes
0 answers
28 views

Why am I Getting System.FormatException Error When Trying to Access MockService (SoapUI) Web Service?

I have a MockService (SoapUI) published on my local host. The URL that I get is the following: http://localhost:8088/mockCalculatorSoap.asmx?WSDL. This was published using the public WSDL available ...
user24657487's user avatar
0 votes
0 answers
52 views

Hitting Mock Server but still getting au.com.dius.pact.consumer.PactMismatchesException: The following requests were not received:

I'm trying to write a Pact test for a new Kotlin Service. I'm able to hit my mockServer and get a 200 response However, I keep getting this error au.com.dius.pact.consumer.PactMismatchesException: The ...
Andy Sun's user avatar
0 votes
0 answers
51 views

Returning the proper stub from mountebank for two almost identical stubs

Say I have two stubs, stubA and stubB for two POST requests. The only difference between them is one field in the body section, in the below example, it would the the productCode that is different, ...
The_Redhawk's user avatar
0 votes
0 answers
32 views

How to prevent mockserver forward from adding extra headers?

I am redirecting requests to real services with HiveContextTest(ClientAndServer mockServer) { this.mockServer = mockServer; } ... my test { mockServer.when( HttpRequest.request() ...
Dims's user avatar
  • 49.9k
0 votes
1 answer
117 views

Spring Boot and MockServer with GET 'body' lead to different result with test env and actual app run

Well I have JUnit 5 test which do API checking, and client which has common code like this ResponseEntity<T> responseEntity = restTemplate.exchange(url, method, httpEntity, clazz); but with GET ...
M_F's user avatar
  • 436
1 vote
0 answers
52 views

MockServer setup for HTTPS SSL requests

Maybe someone can share a working setup for mocking https requests. All my experiments ended with catching of encrypted requests. The documentation is not really clear and I hope there is a way to ...
Ilja's user avatar
  • 11
0 votes
0 answers
27 views

Postman mockserver configuration in Openshift cluster

I am facing a problem integrating the postman-to-k6 node library in my openshift cluster pod. When I configure it locally, it works perfectly but when I upload it to the pod from the docker imager ...
Luis Roset's user avatar
1 vote
1 answer
144 views

How to suppress red 500 error logs from a successful React Testing Library test in the console?

I have the following successful test, which expects a 500 error: it('shows the error state', async () => { server.use( rest.get(get(), async (req, res, ctx) => { return res(...
Ralph David Abernathy's user avatar
0 votes
1 answer
294 views

Unable to exclude dependency from another dependency in gradle 8

I'm getting this error: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.jul.JDK14LoggerFactory ...
MiguelSlv's user avatar
  • 14.9k
0 votes
1 answer
276 views

MockServerClient field is always null with Springboot and Junit5

I'm following the "Running MockServer via Spring TestExecutionListener @MockServerTest" from this official guide. In my Junit5 test I want to instantiate a MockServerClient field. To isolate ...
MiguelSlv's user avatar
  • 14.9k
0 votes
0 answers
117 views

Mockserver path regex with override forwarded request

I'm trying to create a MockServer expectation with regex path, because the service I want to forward sends requests with multiple different paths to the same external application. I also need to use ...
Jaroslav Šváha's user avatar

15 30 50 per page
1
2 3 4 5
13