Spring Boot+具有远程液体迁移的测试范围

发布于 2025-02-09 14:36:40 字数 159 浏览 1 评论 0原文

我有两个春季启动应用程序,这些应用程序不知道液体基础迁移,因为迁移存储在单独的存储库中并由詹金斯应用。

我想介绍测试范围测试以测试与数据库的通信。 问题是,我无法将这些迁移存储在服务中以避免重复。

有什么方法可以在testContainer启动之前提取迁移?也许有些解决方法?

I have two Spring boot applications that don't know about Liquidbase migrations since migrations are stored in a separate repository and applied by Jenkins.

I want to introduce Testcontainers testing to test communication with DB.
The issue is that I cannot store these migrations locally in the services to avoid duplication.

Is there any way to pull migrations before TestContainer start? Maybe some workaround?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

年少掌心 2025-02-16 14:36:40

作为解决方法,我决定使用JGIT SDK下载迁移。

有关JGIT的更多信息:
https://www.baeldung.com/jgit

As a workaround, I decided to use JGit SDK to download migrations.

More information about JGit here:
https://www.baeldung.com/jgit

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文