-
as suggested in this discussion I'm using R2DBC as datasource now the problem is my integration tests because the test resources try to look for a PROJECT --> https://github.com/lucasgust/txwithr2dbc I'm managed to implement a workaround but I'm feeling that's not the right way to do this. flyway:
datasources:
migration:
enabled: true
datasources:
migration:
db-type: mysql
r2dbc:
datasources:
migration:
db-type: mysql
default:
db-type: mysql
url: ${r2dbc.datasources.migration.url} --> need to reuse this url because test resources creates a new instance (different port) for each new datasource name
username: ${r2dbc.datasources.migration.username}
password: ${r2dbc.datasources.migration.password} is there another way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I guess it's not possible with Test Resources. The only way is to have it named |
Beta Was this translation helpful? Give feedback.
I guess it's not possible with Test Resources. The only way is to have it named
default
. Please check this guide https://micronaut-projects.github.io/micronaut-r2dbc/1.0.x/guide/