diff --git a/tests/features/object_storage.feature b/tests/features/object_storage.feature index d84ab768..6f73c269 100644 --- a/tests/features/object_storage.feature +++ b/tests/features/object_storage.feature @@ -18,6 +18,7 @@ Feature: chadmin object-storage commands """ Then S3 contains greater than 0 objects + @require_version_23.3 Scenario: Dry-run clean on one replica with guard period When we execute command on clickhouse01 """ @@ -36,7 +37,7 @@ Feature: chadmin object-storage commands Would delete [1-9][0-9]* objects from bucket \[cloud-storage-test\] """ - + @require_version_23.3 Scenario: Dry-run clean on cluster with guard period When we execute command on clickhouse01 """ @@ -55,6 +56,7 @@ Feature: chadmin object-storage commands Would delete 0 objects from bucket [cloud-storage-test] """ + @require_version_23.3 Scenario: Clean orphaned objects When we put object in S3 """ @@ -84,6 +86,7 @@ Feature: chadmin object-storage commands path: /data/orpaned_object.tsv """ + @require_version_23.3 Scenario: Clean many orphaned objects When we put 100 objects in S3 """ diff --git a/tests/steps/s3.py b/tests/steps/s3.py index 260151c2..56817950 100644 --- a/tests/steps/s3.py +++ b/tests/steps/s3.py @@ -41,7 +41,7 @@ def step_s3_contains_greater_than_files(context, count): @then("S3 bucket {bucket} contains {count:d} objects") def step_cloud_storage_bucket_contains_files(context, bucket, count): s3_client = s3.S3Client(context, bucket) - objects = s3_client.list_objects("/") + objects = s3_client.list_objects("") assert_that( len(objects), equal_to(count),