testcontainers / testcontainers/testcontainers-java

Allow for an init script that runs as the database admin (superuser) for JdbcTestContainer implementations

オープン
#585 コメント 5 件 リアクション 12 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

modules/jdbc resolution/acknowledged resolution/somedaymaybe
主要言語
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...

  1. Setting up multischema databases (that utilize joins across schemas)
  2. Some stored procedure creation DDLs need admin/root access on the DB
  3. Custom database/schema naming
  4. 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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず JdbcTestContainer の実装と、既存の TC_INITSCRIPT の処理を見つけます。初期化スクリプトとデータベースユーザーの接続がどのように構成されているかを追跡し、その後、スーパーユーザーのセットアップがメインのテストユーザースクリプトより前に実行され、列挙されているスキーマ、DDL、命名、grant のユースケースをサポートすることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, java
領域
databases, testing
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。