Simplify the integration test - use backup to File instead of Disk

This commit is contained in:
Victor Krasnov 2023-08-01 13:39:23 +03:00
parent 946f2f0b39
commit 505b4d0112
2 changed files with 2 additions and 7 deletions

View File

@ -1,10 +1,6 @@
<clickhouse>
<storage_configuration>
<disks>
<bak>
<type>local</type>
<path>/var/lib/backups/</path>
</bak>
<one>
<type>local</type>
<path>/var/lib/disks/one/</path>
@ -26,7 +22,6 @@
</policies>
</storage_configuration>
<backups>
<allowed_disk>bak</allowed_disk>
<allowed_path>/var/lib/backups/</allowed_path>
<allowed_path>/backups</allowed_path>
</backups>
</clickhouse>

View File

@ -32,7 +32,7 @@ def cleanup_after_test():
def new_backup_name():
global backup_id_counter
backup_id_counter += 1
return f"Disk('bak', '{backup_id_counter}/')"
return f"File('/backups/{backup_id_counter}/')"
def create_and_fill_table():