180 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-3
votes
1
answer
60
views
Postman MockServer can't respond
I created a mock server in Postman, and I link it with my collection.
I clicked "Add Example" to my request and I created a response.
But when I make that call, in response I get a 404 with:
...
Advice
0
votes
0
replies
20
views
Metadata for Mockserver expectations
I want to register (via REST API) some expectations in a running instance of a Mockserver and then be able to quickly clear (remove) them. The expectations would serve a single test run.
For that ...
1
vote
1
answer
52
views
MockServer json() method - import location
In the following code from https://github.com/mock-server/mockserver/issues/601
return request().withMethod("POST")
.withBody(json(body, MatchType.STRICT))
....
0
votes
0
answers
20
views
Mockserver with case sensitive urls
I use MockServer to create a docker container that provides mocked endpoints defined in a json file.
Everything works fine with this, but the only problem is that I need to distinguish the endpoint by ...
0
votes
0
answers
92
views
Request/Response Logs Not Displayed in Console While Configuring MockServer Logging
I am trying to configure logging for MockServer via the command line. Below is the command I use to start MockServer:
java -Djava.util.logging.config.file="logging_configuration.properties" \...
0
votes
0
answers
206
views
How to Create Custom Dynamic Variables in Mock-Server Velocity Templates?
I’m working with Mock-Server and exploring its support for Velocity templates, specifically the built-in Dynamic Model Variables. I understand that these built-in variables, like $!now_iso_8601, ...
1
vote
0
answers
98
views
<<<< org.graalvm.polyglot.PolyglotException: SyntaxError: Unnamed:1:5 Expected ; but found Sum Mock Sum of numbers from 1 to n
I am using karate frame work (java8 and karate1.3.1) and I need to create a mock service with karate's feature files .
this is small part of my scenarios.( I have same error for all scenarios in my ...
1
vote
0
answers
185
views
mockserver causes dependency collision in springboot test
Summary
When running a springboot test, I get dependency collision, which I can't get rid of.
Details
My build.gradle.kts includes the following line:
testImplementation("org.mock-server:...
0
votes
1
answer
254
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....
0
votes
0
answers
213
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 ...
0
votes
0
answers
129
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 ...
0
votes
1
answer
246
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 ...
1
vote
0
answers
102
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 ...
1
vote
1
answer
258
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(...
1
vote
1
answer
607
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 ...