Skip to main content

Questions tagged [wiremock-standalone]

The tag has no usage guidance.

wiremock-standalone
-1 votes
0 answers
16 views

Query Parameter problem when using WireMock

My application iOS is calling a url like that //api/myusers/6697cdbb4c11c34a8f6cda9e?access_token=0h84Bus24fdRrGGxmLIcLR63KUvs8XBkZrlSIW16CYmK8GBpRRRnSw2f5Jh8CMtk&locale=fra i configure this url ...
tamtoum1987's user avatar
  • 2,037
0 votes
1 answer
38 views

Virtualizing XML-based API using WireMock

I'm trying to virtualize an XML-based API using WireMock and generate a JSON response using wiremock standalone jar. The requirement is to copy a tag value from the XML request payload to the JSON ...
ANZAR AHSAN's user avatar
1 vote
0 answers
69 views

Spring cloud contract wiremock and wiremock standalone - spring boot 3 compatibility

I am working on spring boot 3 migration and currently stuck at spring-cloud-contract-wiremock where the highest version of the library has wiremock-jre8-standalone version with 2.35.2 Should we ...
Phalguna Aramalla's user avatar
0 votes
1 answer
32 views

How to correctly define and handle a static JSON array in WireMock Handlebars extension?

I'm using WireMock's standalone version with Handlebars for creating dynamic responses. I need to include a static JSON array in the JWT payload. However, when I try to define the array in the mapping ...
Ahmeric's user avatar
  • 67
0 votes
2 answers
46 views

The descriptor for message type .google.protobuf.Timestamp cannot be found and a placeholder is created for it

I'm getting the above warning while executing tests. It seems that it doesn't affect anything and the tests are executed successfully. Any Idea why I'm seeing this warning?
DimitriosP's user avatar
0 votes
1 answer
60 views

Wiremock random response with different status code to the same request

I'm using wiremock, I have several responses for the same path and method, get /one. I would like to respond with different status code randomly. I know I can differ the response sequentially using ...
Dani Cruz's user avatar
1 vote
1 answer
28 views

Fetching attribute value from an xml request in wiremock and sending it as a webhook giving error-> [ERROR: null is not valid XML]

I'm working with an XML body for an API request, and I need to extract an attribute to send via a webhook. I've successfully extracted the attribute and included it in the API response(which is ...
YoDO's user avatar
  • 103
0 votes
1 answer
61 views

WireMock multi value query matching

According to this documentation: https://wiremock.org/docs/request-matching/#matching-headerquery-parameter-containing-multiple-values the following mapping definition should work: { "mappings&...
Lukasz G.'s user avatar
  • 131
0 votes
1 answer
149 views

How to create dynamic response with json in wiremock

{ "result": { {{#each (jsonPath request.body '$.ids') as |id|}}"{{id}}": { "favorite_0": 1, "search_0": 1, "visit_0": 1, ...
Mustafa Selim Günaydın's user avatar
-1 votes
1 answer
74 views

How to do wiremock state management?

We have state management issues in Wiremock. We are receiving wrong responses from wire mock, and that causes test failures. example Test A should receive the title "title a." Test B should ...
Nish's user avatar
  • 1,598
0 votes
1 answer
157 views

Wiremock webhook and response won't return same random value

I am using wiremock-standalone-3.4.2, trying to emulate a 3rd party that upon a request from me responds with a certain field with UUID value X and sends the same value X to a webhook. The value X ...
Nizan Stein's user avatar
0 votes
1 answer
54 views

How does "hasExactly" keyword work in WireMock JSON Stub configuration?

I have a JSON stub configuration as below - { "mappings": [ { "request": { "method": "GET", "url": "/student",...
AMOD MAHAJAN's user avatar
0 votes
0 answers
53 views

Wiremock proxy forwarding different header's user-agent

I'm using Wiremock to proxy my network from a real device. My current setup is just to forward all network to our BE service. Our service expect a custom user-agent, which is whitelisting the calls, ...
MoOoG's user avatar
  • 303
0 votes
1 answer
248 views

How to use 'wiremock-faker-extension' extension to generate faker stub data when running wiremock as standalone

I would like to use this extension wiremock-faker-extension to generate dynamic stub data and would like to use this faker library for that. I am running wiremock as standalone service with the ...
Heera Singh's user avatar
1 vote
0 answers
49 views

Use the value generated in response to another response

I use Wiremock Standalone. I have a query to retrieve product information /api/product/{id} A simplified view of the stub for this query: { "request": { "urlPattern": "/...
lojz's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
10