testcontainers / testcontainers/testcontainers-java
Allow for an init script that runs as the database admin (superuser) for JdbcTestContainer implementations
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 8.7k
- フォーク
- 1.9k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 9
説明
This would allow customized setup that just isn't possible as the "test" user.
TC_INITSCRIPT_SUPER parameter maybe?
This would ideally run before the
TC_INITSCRIPT
so there is an opportunity to configure things before the main real-user based init script runs.
Example Usages...
- Setting up multischema databases (that utilize joins across schemas)
- Some stored procedure creation DDLs need admin/root access on the DB
- Custom database/schema naming
- Grants
As a side-note it would be nice to have a code-based way to get a connection as the admin/root user for code based configuration that requires it.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず JdbcTestContainer の実装と、既存の TC_INITSCRIPT の処理を見つけます。初期化スクリプトとデータベースユーザーの接続がどのように構成されているかを追跡し、その後、スーパーユーザーのセットアップがメインのテストユーザースクリプトより前に実行され、列挙されているスキーマ、DDL、命名、grant のユースケースをサポートすることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, java
- 領域
- databases, testing
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100