From 62488159fe0ebbfb0788040a97999d06b5164b3e Mon Sep 17 00:00:00 2001 From: Jarkko Jaakola Date: Wed, 18 Sep 2024 09:26:46 +0300 Subject: [PATCH] test: use --verbose in backup v3 test command --- tests/integration/backup/test_v3_backup.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/integration/backup/test_v3_backup.py b/tests/integration/backup/test_v3_backup.py index 59b788541..413340305 100644 --- a/tests/integration/backup/test_v3_backup.py +++ b/tests/integration/backup/test_v3_backup.py @@ -130,6 +130,7 @@ def test_roundtrip_from_kafka_state( "karapace_schema_backup", "get", "--use-format-v3", + "--verbose", "--config", str(config_file), "--topic", @@ -162,6 +163,7 @@ def test_roundtrip_from_kafka_state( [ "karapace_schema_backup", "restore", + "--verbose", "--config", str(config_file), "--topic", @@ -230,6 +232,7 @@ def test_roundtrip_empty_topic( "karapace_schema_backup", "get", "--use-format-v3", + "--verbose", "--config", str(config_file), "--topic", @@ -256,6 +259,7 @@ def test_roundtrip_empty_topic( [ "karapace_schema_backup", "restore", + "--verbose", "--config", str(config_file), "--topic", @@ -293,6 +297,7 @@ def test_errors_when_omitting_replication_factor(config_file: Path) -> None: [ "karapace_schema_backup", "get", + "--verbose", "--use-format-v3", f"--config={config_file!s}", "--topic=foo-bar", @@ -330,6 +335,7 @@ def test_exits_with_return_code_3_for_data_restoration_error( [ "karapace_schema_backup", "restore", + "--verbose", "--config", str(config_file), "--topic", @@ -369,6 +375,7 @@ def test_roundtrip_from_file( [ "karapace_schema_backup", "restore", + "--verbose", "--config", str(config_file), "--topic", @@ -387,6 +394,7 @@ def test_roundtrip_from_file( [ "karapace_schema_backup", "get", + "--verbose", "--use-format-v3", "--config", str(config_file), @@ -464,6 +472,7 @@ def test_roundtrip_from_file_skipping_topic_creation( [ "karapace_schema_backup", "restore", + "--verbose", "--config", str(config_file), "--topic", @@ -484,6 +493,7 @@ def test_roundtrip_from_file_skipping_topic_creation( "karapace_schema_backup", "get", "--use-format-v3", + "--verbose", "--config", str(config_file), "--topic", @@ -719,6 +729,7 @@ def test_can_inspect_v3(self) -> None: [ "karapace_schema_backup", "inspect", + "--verbose", "--location", str(metadata_path), ], @@ -769,6 +780,7 @@ def test_can_inspect_v3_with_future_checksum_algorithm(self) -> None: [ "karapace_schema_backup", "inspect", + "--verbose", "--location", str(metadata_path), ], @@ -832,6 +844,7 @@ def test_can_inspect_v1(self) -> None: [ "karapace_schema_backup", "inspect", + "--verbose", "--location", str(backup_path), ], @@ -856,6 +869,7 @@ def test_can_verify_file_integrity(self) -> None: [ "karapace_schema_backup", "verify", + "--verbose", f"--location={metadata_path!s}", "--level=file", ], @@ -883,6 +897,7 @@ def test_can_verify_record_integrity(self) -> None: [ "karapace_schema_backup", "verify", + "--verbose", f"--location={metadata_path!s}", "--level=record", ], @@ -924,6 +939,7 @@ def test_can_verify_file_integrity_from_large_topic( "karapace_schema_backup", "get", "--use-format-v3", + "--verbose", f"--config={config_file!s}", f"--topic={new_topic.topic!s}", "--replication-factor=1", @@ -938,6 +954,7 @@ def test_can_verify_file_integrity_from_large_topic( [ "karapace_schema_backup", "verify", + "--verbose", f"--location={metadata_path!s}", "--level=file", ], @@ -979,6 +996,7 @@ def test_can_verify_record_integrity_from_large_topic( "karapace_schema_backup", "get", "--use-format-v3", + "--verbose", f"--config={config_file!s}", f"--topic={new_topic.topic}", "--replication-factor=1", @@ -993,6 +1011,7 @@ def test_can_verify_record_integrity_from_large_topic( [ "karapace_schema_backup", "verify", + "--verbose", f"--location={metadata_path}", "--level=record", ], @@ -1022,6 +1041,7 @@ def test_can_refute_file_integrity(self) -> None: [ "karapace_schema_backup", "verify", + "--verbose", f"--location={metadata_path!s}", "--level=file", ], @@ -1051,6 +1071,7 @@ def test_can_refute_record_integrity(self) -> None: [ "karapace_schema_backup", "verify", + "--verbose", f"--location={metadata_path!s}", "--level=record", ], @@ -1093,6 +1114,7 @@ def test_gives_non_successful_exit_code_for_legacy_backup_format( [ "karapace_schema_backup", "verify", + "--verbose", f"--location={backup_path}", "--level=file", ],