testcontainers / testcontainers/testcontainers-python
Bug: Azurite unable to run create_container
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 386
- 平均マージ
- 4時間 40分
- マージ済み PR(30日)
- 1
説明
Describe the bug
when using a Blob Service Client on a Azurite container, an azure blob storage container cannot be created, thus testing that requires containers cannot continue. E.g. get_blob_client and upload_blob requires a container.
To Reproduce
Provide a self-contained code snippet that illustrates the bug or unexpected behavior. Ideally, send a Pull Request to illustrate with a test that illustrates the problem.
The last line here just hangs indefinitely, unable to proceed further
from azure.storage.blob import BlobServiceClient
from testcontainers.azurite import AzuriteContainer
with AzureContainer() as azurite_container:
connection_string = azurite_container.get_connection_string()
service_client = BlobServiceClient.from_connection_string(connection_string)
service_client.create_container(name="test")
Runtime environment
- M2 Pro, sonoma 14.7
- Python 3.12.3
- Docker 4.37.2
- Testcontainers 4.9.0 (via poetry)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
AzuriteContainer のエントリーポイントから始め、示されているように BlobServiceClient.create_container を使用してハングを再現します。まずコンテナーの接続文字列と起動時の動作を確認します。create_container が正常に返り、その後の get_blob_client と upload_blob の操作を進められる状態になり、再現を対象とするリグレッションテストが含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- azure, docker, python
- 領域
- cloud, testing
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100