-
Notifications
You must be signed in to change notification settings - Fork 62
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
Better support for Spring Boot's @DataMongoTest #551
Comments
problem still exists with Mongock 5.1.6 and Spring Boot 2.6.5 (Spring-Data-MongoDB v3.3.3) |
Hello @rfelgent , we are in the middle of something important right now. Is this blocking you? |
We have to add this configuration with @DataMongoTest
@EnableMongock
@Import({SpringDataMongoV4Context.class}) // it can be also SpringDataMongoV3Context for Spring Boot 2 Mainly find the
When I find some time I will create a MR. |
Hi @Saljack , exactly; either use V3Context.class oder V4Context.class depending on the Sprint Boot version you use. Are you planning to create meta annatotation ? My 2 cents:
|
Hmm, I realized it is not a good idea to just add |
Hi @dieppa , I see that you have closed the issue. Is there now an out-of-the-box solution provided by mongock library ? |
hello again, sorry to bother you guys. My current work-around for tweaking the
I have no problems with mongock initialization during test execution when using plain |
It has been re-opened, we'll take a look to see th best option to approach this and will give you an answer with the estimation soon |
Hello,
mongock gets triggered in a test without any problem when performing a fully fledged spring boot test e.g.
Mongock is failing when doing a mongo slice test
I found a way to fix this by manually adding a driver bean to the spring context
So I do observe that Mongock's autoconfiguration for "driver" beans is failing within a
@DataMongoTest
.I am using SB 2.7 and SB 2.6.X and only the Mongock version is 5.1.0
Best regards
The text was updated successfully, but these errors were encountered: