testcontainers / testcontainers/testcontainers-python
Bug: Azurite unable to run create_container
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 2.3k
- Fork
- 386
- Merge medio
- 4h 40m
- PR unite (30g)
- 1
Descrizione
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)
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal punto di ingresso AzuriteContainer e riproduci il blocco usando BlobServiceClient.create_container come mostrato. Controlla prima la stringa di connessione del contenitore e il comportamento all’avvio; l’attività è completata quando create_container restituisce correttamente, così da poter eseguire successivamente le operazioni get_blob_client e upload_blob, con un test di regressione che copra la riproduzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, docker, python
- Ambito
- cloud, testing
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100