-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mappings from class path not working #65
Comments
This works:
But I totally agree that the behavior here is strange. With the logging:
Now it just checks to see if the resource exsits, not if it is a WireMock mappings root folder. |
I've just come across this issue while trying to migrate, regardless of weather I use |
Look at the examples here: https://github.com/wiremock/wiremock-spring-boot/tree/main/src/test/java/usecases Provide some an example showing the error if you want help. |
Apologies I missed those and I can see they're working, I'm just doing something wrong 🤔 |
for posterity... my issue is that my tests are running in I can see @ZIRAKrezovic is trying to load from |
Proposal
I am migrating from wiremock-spring-boot 2.x to 3.x.
Our mappings are located as specified by previous wiremock-spring-boot
src/main/resources/wiremock/wiremock-server-name/mappings
Content of the mapping file
According to changelog, I should use
filesUnderClasspath
as a replacement for 2.xstubLocation
Used annotations for for 2.x (implicitly sets
stubLocation
towiremock/myapp/mappings
)Used annotations for 3.x
Log output when starting wiremock with 3.x
However, call to
wiremock-url
/test results inWith previous version, it results in
Reproduction steps
I have set up a reproducer at https://github.com/ZIRAKrezovic/wiremock-spring-reproducer
There are two tests, one for 2.x and one for 3.x.
References
No response
The text was updated successfully, but these errors were encountered: