-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Migrating Mongo to DevServices #213
Comments
There is an authentication problem. All the tests in
|
Here are some differences between the Mongo and SQL setup and code:
The entire Liquibase configuration disapears in Mongo. But it looks like there is a Liquibase extension: https://github.com/liquibase/liquibase-mongodb |
InitialSetupMigration can be simplified as follow:
But now there is another exception, due to the new version of BSON
It looks like this is due to a wrong type of id. ATM the id is a
But that's because it inherits from
I checked the behaviour of the Spring version of the JHipster generator. It uses the version 3.11.2 of the Another exception that happens is:
For that we need to create an id as an
But that means that we need an id of type
But that means that the DTO has to be changed too:
And specify an ID in the test
|
Added a bug bounty to increase motivation. |
@agoncal Are you interested in continuing this work? I'd like to see this blueprint succeed and I'm willing to help make it happen. |
@mraible unfortunatelly I won't be able to work on that, too much on my plate :o( |
Describe the bug
Today the generated application that use MongoDB as a primary database, use Mongock for testing. We should use DevServices instead. But some migration is needed
Migrating Configuration
Today the Mongo configuration is as follow:
The end result should look like:
Migrating Test Configuration
MongoDbTestResource
.Pom.xml
We can get all the dependencies on MongoDB and Mongock and only leave
quarkus-mongodb-panache
The text was updated successfully, but these errors were encountered: