From e71b263119f74c94bb264b3f57f883ff5c03c028 Mon Sep 17 00:00:00 2001 From: Vlad Lazar Date: Wed, 25 May 2022 17:19:34 +0100 Subject: [PATCH] tests: test topic creation with invalid configs Add tests for topic creation requests that use unexpected literal values (e.g. `compression.type=foo`). (cherry picked from commit bac883a53bce3b16d46201529d54e5476b7b8630) --- tests/rptest/tests/rpk_topic_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/rptest/tests/rpk_topic_test.py b/tests/rptest/tests/rpk_topic_test.py index 27124ec65e190..45811e87ababd 100644 --- a/tests/rptest/tests/rpk_topic_test.py +++ b/tests/rptest/tests/rpk_topic_test.py @@ -7,13 +7,15 @@ # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0 +from ducktape.mark import parametrize from ducktape.utils.util import wait_until from rptest.services.cluster import cluster import ducktape.errors from rptest.tests.redpanda_test import RedpandaTest -from rptest.clients.rpk import RpkTool +from rptest.clients.rpk import RpkTool, RpkException from rptest.services.rpk_consumer import RpkConsumer +from rptest.util import expect_exception import time import random