Skip to content

Commit

Permalink
Merge pull request #13805 from vbotbuildovich/backport-pr-13758-v23.2…
Browse files Browse the repository at this point in the history
….x-506

[v23.2.x] tests/admin_ops: check if topic is not listed when removed
  • Loading branch information
piyushredpanda authored Sep 30, 2023
2 parents b513e6c + 526ba87 commit f170aff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/rptest/services/admin_ops_fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ def validate(self, ctx):
if self.topic is None:
return False
ctx.redpanda.logger.info(f"Validating topic {self.topic} deletion")
# validate RPK output first
topics = ctx.rpk().list_topics()
if self.topic in topics:
ctx.redpanda.logger.info(
f"found deleted topic {self.topic} in RPK response: {topics}")
return False

try:
brokers = ctx.admin().get_brokers()
except:
Expand Down

0 comments on commit f170aff

Please sign in to comment.