Skip to content

Commit

Permalink
test: use --verbose in backup v3 test command
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Sep 18, 2024
1 parent 773afa8 commit 0a743b4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/integration/backup/test_v3_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def test_roundtrip_from_kafka_state(
"karapace_schema_backup",
"get",
"--use-format-v3",
"--verbose",
"--config",
str(config_file),
"--topic",
Expand Down Expand Up @@ -162,6 +163,7 @@ def test_roundtrip_from_kafka_state(
[
"karapace_schema_backup",
"restore",
"--verbose",
"--config",
str(config_file),
"--topic",
Expand Down Expand Up @@ -230,6 +232,7 @@ def test_roundtrip_empty_topic(
"karapace_schema_backup",
"get",
"--use-format-v3",
"--verbose",
"--config",
str(config_file),
"--topic",
Expand All @@ -256,6 +259,7 @@ def test_roundtrip_empty_topic(
[
"karapace_schema_backup",
"restore",
"--verbose",
"--config",
str(config_file),
"--topic",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -369,6 +375,7 @@ def test_roundtrip_from_file(
[
"karapace_schema_backup",
"restore",
"--verbose",
"--config",
str(config_file),
"--topic",
Expand All @@ -387,6 +394,7 @@ def test_roundtrip_from_file(
[
"karapace_schema_backup",
"get",
"--verbose",
"--use-format-v3",
"--config",
str(config_file),
Expand Down Expand Up @@ -464,6 +472,7 @@ def test_roundtrip_from_file_skipping_topic_creation(
[
"karapace_schema_backup",
"restore",
"--verbose",
"--config",
str(config_file),
"--topic",
Expand All @@ -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",
Expand Down Expand Up @@ -719,6 +729,7 @@ def test_can_inspect_v3(self) -> None:
[
"karapace_schema_backup",
"inspect",
"--verbose",
"--location",
str(metadata_path),
],
Expand Down Expand Up @@ -769,6 +780,7 @@ def test_can_inspect_v3_with_future_checksum_algorithm(self) -> None:
[
"karapace_schema_backup",
"inspect",
"--verbose",
"--location",
str(metadata_path),
],
Expand Down Expand Up @@ -832,6 +844,7 @@ def test_can_inspect_v1(self) -> None:
[
"karapace_schema_backup",
"inspect",
"--verbose",
"--location",
str(backup_path),
],
Expand All @@ -856,6 +869,7 @@ def test_can_verify_file_integrity(self) -> None:
[
"karapace_schema_backup",
"verify",
"--verbose",
f"--location={metadata_path!s}",
"--level=file",
],
Expand Down Expand Up @@ -883,6 +897,7 @@ def test_can_verify_record_integrity(self) -> None:
[
"karapace_schema_backup",
"verify",
"--verbose",
f"--location={metadata_path!s}",
"--level=record",
],
Expand Down Expand Up @@ -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",
Expand All @@ -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",
],
Expand Down Expand Up @@ -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",
Expand All @@ -993,6 +1011,7 @@ def test_can_verify_record_integrity_from_large_topic(
[
"karapace_schema_backup",
"verify",
"--verbose",
f"--location={metadata_path}",
"--level=record",
],
Expand Down Expand Up @@ -1022,6 +1041,7 @@ def test_can_refute_file_integrity(self) -> None:
[
"karapace_schema_backup",
"verify",
"--verbose",
f"--location={metadata_path!s}",
"--level=file",
],
Expand Down Expand Up @@ -1051,6 +1071,7 @@ def test_can_refute_record_integrity(self) -> None:
[
"karapace_schema_backup",
"verify",
"--verbose",
f"--location={metadata_path!s}",
"--level=record",
],
Expand Down Expand Up @@ -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",
],
Expand Down

0 comments on commit 0a743b4

Please sign in to comment.