Skip to content

Commit 68889db

Browse files
committed
tests/migrations: test getting a migration that does not exist
1 parent d728b81 commit 68889db

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/rptest/tests/data_migrations_api_test.py

+9
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,15 @@ def assure_not_migratable(self, topic: TopicSpec):
244244
except requests.exceptions.HTTPError as e:
245245
pass
246246

247+
@cluster(num_nodes=3, log_allow_list=MIGRATION_LOG_ALLOW_LIST)
248+
def test_listing_inexistent_migration(self):
249+
try:
250+
self.get_migration(42)
251+
except Exception as e:
252+
# check 404
253+
self.logger.info("f{e}")
254+
raise
255+
247256
@cluster(num_nodes=3, log_allow_list=MIGRATION_LOG_ALLOW_LIST)
248257
def test_creating_with_topic_no_remote_writes(self):
249258
self.redpanda.set_cluster_config(

0 commit comments

Comments
 (0)