Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

astacus: test azure blob storage table engine #258

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions astacus/coordinator/plugins/clickhouse/engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ class TableEngine(enum.Enum):
PostgreSQL = "PostgreSQL"
S3 = "S3"
KeeperMap = "KeeperMap"
AzureBlobStorage = "AzureBlobStorage"
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ async def setup_cluster_content(clients: Sequence[HttpClickHouseClient], clickho
)
if await is_engine_available(clients[0], TableEngine.S3):
await clients[0].execute(b"CREATE TABLE default.s3 (a Int) ENGINE = S3('http://bucket.s3.amazonaws.com/key.json')")

if await is_engine_available(clients[0], TableEngine.AzureBlobStorage):
await clients[0].execute(
b"CREATE TABLE default.azureblobstorage (a Int) ENGINE = AzureBlobStorage('DefaultEndpointsProtocol=', 'test_container', 'test_table', 'CSV')"
)

# add a function table
await clients[0].execute(b"CREATE TABLE default.from_function_table AS numbers(3)")
# add a table with data in object storage
Expand Down Expand Up @@ -578,6 +584,7 @@ async def test_cleanup_does_not_break_object_storage_disk_files(
("default.postgresql", TableEngine.PostgreSQL),
("default.mysql", TableEngine.MySQL),
("default.s3", TableEngine.S3),
("default.azureblobstorage", TableEngine.AzureBlobStorage),
],
)
async def test_restores_integration_tables(
Expand Down
Loading