mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Add test for zip archive with bad settings
This commit is contained in:
parent
6a97d938fb
commit
0e02f82665
@ -430,6 +430,17 @@ def test_zip_archive_with_settings():
|
||||
assert instance.query("SELECT count(), sum(x) FROM test.table") == "100\t4950\n"
|
||||
|
||||
|
||||
def test_zip_archive_with_bad_settings():
|
||||
backup_name = f"Disk('backups', 'archive_with_bad_settings.zip')"
|
||||
create_and_fill_table()
|
||||
|
||||
assert instance.query("SELECT count(), sum(x) FROM test.table") == "100\t4950\n"
|
||||
instance.query(
|
||||
f"BACKUP TABLE test.table TO {backup_name} SETTINGS id='archive_with_bad_settings', compression_method='foobar'"
|
||||
)
|
||||
assert instance.query("SELECT status FROM system.backups WHERE id='archive_with_bad_settings'") == "BACKUP_FAILED\n"
|
||||
|
||||
|
||||
def test_async():
|
||||
create_and_fill_table()
|
||||
assert instance.query("SELECT count(), sum(x) FROM test.table") == "100\t4950\n"
|
||||
|
Loading…
Reference in New Issue
Block a user