Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
0 answers
43 views

I have tests which work exactly how they should work, but then something happen, and now It doesnt work. I think It can be problem with version. public void mockEmployeeSearch(...
Alexis's user avatar
  • 7
3 votes
4 answers
111 views

I am trying to dynamically generate a list with N entities, the quantity can be set using the query parameter size as the following GET /search?size=15. I want to set a default value for it when the ...
Kodex's user avatar
  • 43
0 votes
1 answer
110 views

@ActiveProfiles("it") @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @ContextConfiguration(classes = ServiceApplication.class) @AutoConfigureWireMock(port = 0) @...
emoleumassi's user avatar
  • 5,179
0 votes
1 answer
31 views

I'm trying to setup wiremock standalone in the way to record all requests from certain api on my android emulator with steps below: Launching wiremock on machine with: java -jar wiremock-standalone-3....
Keixd's user avatar
  • 1
0 votes
0 answers
38 views

Whenever I have a client in my Spring Boot application I use WireMock for integration testing. Works very well. I now have to implement an async client for which I am using WebClient, but my typical ...
mackesmilian's user avatar
0 votes
1 answer
140 views

In the following scenario: In a loop: construct and launch server construct client and make a request print response code cleanup server and client I am seeing occasional timeouts and rarely other ...
Lesiak's user avatar
  • 26.6k
0 votes
1 answer
130 views

I use WireMock to stub the following URL to an external service: /users/{username}/repos. The official docs says that using regexes is discouraged note Using the Path and query regex is generally not ...
camilajenny's user avatar
  • 5,256
0 votes
0 answers
110 views

My resources tree is src/test/resources/ ├── application-test.yml └── wiremock ├── __files │ ├── github-repo-branches.json │ └── github-user-repos.json └── mappings ├── ...
camilajenny's user avatar
  • 5,256
1 vote
1 answer
49 views

I am trying to mock google oauth flow with wiremock in my nodejs app for integration tests. I have configured in my passport manager code: passport.use(new GoogleStrategy({ clientID: config....
Mandroid's user avatar
  • 7,808
0 votes
0 answers
48 views

This is what my current docker compose looks like, wanting to mock a service where the mappings are mounted to /app/__admin/mappings and files that are used in bodyFileName are mounted to/app/__admin/...
Riley Szecsy's user avatar
1 vote
0 answers
150 views

I'm encountering an SSL connection issue when using WireMock to mock an external HTTPS service. The mock server is configured and starts up correctly, but when my application tries to make a request ...
Mysterious288's user avatar
0 votes
0 answers
79 views

I am trying to use holomekc/wiremock-gui:3.x.x-alpine version as a Docker base image to create Docker file with wiremock UI. And my problem is that seems there is no way to set up some context-path in ...
tidik's user avatar
  • 21
0 votes
0 answers
33 views

I am using the same function - "ts":"{{now offset='1 months' format='epoch'}}". The Response I get is "ts":"1749708866319". I need the response as a number ...
lovedeep sandhu's user avatar
1 vote
1 answer
53 views

I'm trying to deploy a custom image to an app service in azure. Incidentally it's based on a wiremock image and simply copies some configuration files to be used at runtime. When I docker build and ...
Patrick Davy's user avatar
0 votes
1 answer
84 views

I run Wiremock as a standalone server by using below parameters. java -Xms2048m -Xmx2048m -Dhttp.keepAlive=true -jar wiremock-standalone-3.12.1.jar --max-request-journal-entries 300 --global-response-...
Enock Prince's user avatar
0 votes
0 answers
53 views

We're using WireMock with browser proxying and snapshotting for tests where requests to remote services is not under our control. This works really well. The thing we'd like is for any requests, that ...
Quintesse's user avatar
  • 472
0 votes
0 answers
54 views

I have no problem with stubbing request with several query parameters in Wiremock. But when one or many of them are required to be in format ?name=value1&name=value2&name=value3 I get stumped. ...
Jens-Konrad Preem's user avatar
1 vote
0 answers
225 views

Below is shown the JSON response file for a wiremock request. The issue is that the value for num in the request is a number, but this response file is returning num as a string. { "num": &...
ASJ's user avatar
  • 35
0 votes
1 answer
89 views

I have a question about wiremock AppResourceTest.class in the link below doesn't work as i expectedwith wiremock-standalone. I start Wiremock server inside a QuarkusTestResourceLifecycleManager custom ...
robyp7's user avatar
  • 501
0 votes
1 answer
364 views

I am setting up a wiremock docker for running my (Spring) app locally and running tests locally and in a pipeline. I am using port 8081 rather than port 8080 as 8080 is used by the application to ...
BBrack's user avatar
  • 3
0 votes
0 answers
56 views

TL;DR: How to mock a microservice in integration tests when using Feign and Eureka? I am running integration tests on the Controller Layer of my Employee Service, which uses OpenFeign to create a ...
AbdoCherry's user avatar
0 votes
0 answers
136 views

I'm using WireMock standalone App through docker. A few mocked endpoints are shared across many tests. When I run my tests sequentially, all work fine and pass. But when the tests are executed in ...
fanhaipeng's user avatar
0 votes
1 answer
43 views

I want to assign last url parameter to object property which should be in integer Example : { "request": { "method": "GET", "urlPattern": "/api/v4/Automation/Get/test/([0-9]+)" }, "...
kaushal sharma's user avatar
0 votes
1 answer
464 views

Currently, I am using Wiremock 3.12 version.I am trying to load wiremock-state-extension from local folder to container folder.So, According to official documentation: https://github.com/wiremock/...
kaushal sharma's user avatar
1 vote
1 answer
84 views

I am trying to test a spring boot application using dapr. For my test set up I want to start a Dapr testcontainer and have a Conmponent that references a Wiremock testcontainer to stub http calls. ...
JP13's user avatar
  • 70
0 votes
1 answer
256 views

I'm writing integration test using Wiremock, in Kotlin and Micronaut. I have endpoint that do some logic, then it runs async function (and return 202), like this: @Async open fun asynFunction(): ...
Paweł Sosnowski's user avatar
0 votes
1 answer
184 views

I have my wiremock service running on a kubernetes pod. One of the mappings is as follows: { "request": { "method": "POST", "urlPattern": "/v1/...
Sai Krishna's user avatar
0 votes
1 answer
153 views

I tried to mock three APIs provided by ShortPixel with Wiremock. https://shortpixel.com/knowledge-base/article/shortpixels-cdn-api-endpoints/ https://shortpixel.com/knowledge-base/article/shortpixel-...
Hantsy's user avatar
  • 9,611
0 votes
1 answer
245 views

I have a stub with the following description: in the image. wiremock stub in postman The bodyFileName is set to response.bin, which WireMock should return. However, for some reason, WireMock returns a ...
Rmn's user avatar
  • 1
0 votes
1 answer
66 views

row body is printed in Postman as TradeSha=https%3A%2F%2Fenv.example.com%2Fpayments%2FRedirectHandler%2F1002%3FtId%3D100201195%26token%3D9c8dce5b-ddbb-4190-9cbe-3da45fad50d2 Location header is printed ...
lionheart's user avatar
  • 436
0 votes
1 answer
417 views

I am trying to run the demo provided at wiremock grpc page using spring boot: https://wiremock.org/docs/grpc/ I have the following configuration for the beans: @Configuration public class ...
Georgi Asparuhov's user avatar
0 votes
1 answer
112 views

I have a following example JSON body, which will be sent to Wiremock. { "array1": [ { "prop1": "value", }, { "prop1": "value"...
Alexey Gavrilik's user avatar
0 votes
2 answers
100 views

I am trying to create a request object with a dynamic parameter for testing an API endpoint using WireMock. Below is my current implementation: var response = new Response { CustomerId = ...
HurkanSeyhan's user avatar
0 votes
0 answers
624 views

I have two services communicating with gRPC (one is gRPC server, and the other is gRPC client). I want to write a test for the gRPC client and want to mock the gRPC server. I am trying to that by ...
Furkan's user avatar
  • 683
0 votes
1 answer
245 views

I'm using WireMock Standalone to mock API responses, and I need to dynamically calculate values within my response templates. Specifically, I want to perform basic arithmetic operation (multiplication)...
Mahesh Kumaran's user avatar
-1 votes
2 answers
575 views

I am using Wiremock with version and Java 21 <dependency> <groupId>com.github.tomakehurst</groupId> <artifactId>wiremock</artifactId> <version&...
neverthoughtitwouldwork's user avatar
2 votes
1 answer
332 views

I'm writing tests for my Spring Boot service. I use Wiremock for mocking HTTP requests. I need to disable the WireMock server temporarily for one specific test to simulate the unavailability of the ...
Sergey Kazantsev's user avatar
0 votes
0 answers
85 views

I've been fighting versions in maven all week, and I'm getting desperate. I finally got it to compile, but there are somehow subtle differences that show up at runtime. Specifically for the wiremock ...
Joe Fair's user avatar
1 vote
1 answer
143 views

I am running Wiremock as a standalone process to proxy all requests to "https://mybackend.net". Why the connection is trusted (I expect a SSL certificate problem)? This is the command used ...
Marco Romero's user avatar
1 vote
1 answer
352 views

I am attempting to upgrade one of my projects to use Spring Boot 3. The code is running with no issues and all of my tests pass when run individually or I run tests from only a single class. The issue ...
IanM's user avatar
  • 13
1 vote
1 answer
107 views

I'm having a file correctly served by wiremock standalone, located in a subdirectory of __files, via an http GET request sent by curl: Curl -XGET http://wiremockserver/api/file/myfile.json So myfile....
Guenhaël 's user avatar
0 votes
1 answer
334 views

I have Spring Boot 3 application. I use openapi.json to define rest client and openapi-generator-maven-plugin to generate java code for the client. This results in ApiClient class being generated ...
u4963840's user avatar
  • 367
0 votes
1 answer
199 views

I am new to Wiremock and am having problem handling a URL that can have one or more path parameters. For example, I have this URL: /product/{productname};weight={weight};size={size};isdigital={...
Tang's user avatar
  • 3
2 votes
1 answer
736 views

I'm Evaluating the Wiremock to be used in our project Need help in understanding how to generate the integer field in the response taken out of request (both are JSONs). Example of stub mappings: ...
Mark Bramnik's user avatar
0 votes
0 answers
102 views

I want to use WireMock plugin in Idea Intellij Ultimate but I want to make the same folder's structure executable from WireMock standalone, which is: <ROOT_DIR>/mappings <ROOT_DIR>/...
pantuptus's user avatar
  • 183
0 votes
1 answer
608 views

I have the following response configuration that I'm testing with wiremock standalone jar v3.4.0. { "id": "e6e2b5cf-52c1-3b0a-b368-3ea71e444fbf", "request": { &...
Balajee Ks's user avatar
0 votes
1 answer
252 views

I have some integration tests which use WireMock for stubbing external HTTP requests. All of the stubs are located in a mappings directory and are all automatically picked up by the tests. I would ...
kcon123's user avatar
  • 532
-2 votes
1 answer
110 views

help please. trying using in wiremock dynamic data Wiremock editing in intellij idea "expiresAt": "{{now offset='1 hour' timezone='Australia/Sydney' format='unix'}}", but got error ...
yndingo's user avatar
  • 31
0 votes
0 answers
212 views

I'm in need of some help with the following: Upon verifying the actual body content to be equal to the expected I run into the following issue: CLICK HERE FOR THE IMAGE -> Expected vs Actual body ...
3nterAUs3rname's user avatar
0 votes
1 answer
246 views

I have the following situation: I have the following folder structure: -- wiremock (root) --- src/main/java/org/company/wiremock/CustomHostTransformer.java --- src/main/resources/META-INF/services/com....
ielkhalloufi's user avatar

1
2 3 4 5
20