Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Sep 18, 2024
1 parent 85c7a32 commit 252bc16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ unit-tests: karapace/version.py venv/.deps
unit-tests: export PYTEST_ARGS ?=
integration-tests: karapace/version.py venv/.deps
rm -fr runtime/*
$(PYTHON) -m pytest -s -vvv $(PYTEST_ARGS) tests/integration/
$(PYTHON) -m pytest -s -vvv $(PYTEST_ARGS) "tests/integration/backup/test_v3_backup.py::test_backup_restoration_fails_when_topic_does_not_exist_and_skip_creation_is_true"
rm -fr runtime/*

.PHONY: clean
Expand Down
14 changes: 7 additions & 7 deletions tests/integration/backup/test_v3_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@ def __exit__(self, exc_type, exc_value, exc_traceback):

with patch("karapace.backup.api._producer") as p:
p.return_value = LowTimeoutProducer()
with pytest.raises(BackupDataRestorationError):
api.restore_backup(
config=config,
backup_location=metadata_path,
topic_name=TopicName(topic_name),
skip_topic_creation=True,
)
#with pytest.raises(BackupDataRestorationError):
api.restore_backup(
config=config,
backup_location=metadata_path,
topic_name=TopicName(topic_name),
skip_topic_creation=True,
)


def test_backup_restoration_fails_when_producer_send_fails_on_unknown_topic_or_partition(
Expand Down

0 comments on commit 252bc16

Please sign in to comment.