From 9d48a3f566f38bdea90511fe61fbeff0a83d1f72 Mon Sep 17 00:00:00 2001 From: Oren Leiman Date: Thu, 22 Aug 2024 11:27:40 -0700 Subject: [PATCH] dt/admin_uuid: Integration test for CLI options Signed-off-by: Oren Leiman --- tests/rptest/tests/admin_uuid_operations_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/rptest/tests/admin_uuid_operations_test.py b/tests/rptest/tests/admin_uuid_operations_test.py index 16e3087c1fc1b..3af36d6a12179 100644 --- a/tests/rptest/tests/admin_uuid_operations_test.py +++ b/tests/rptest/tests/admin_uuid_operations_test.py @@ -120,6 +120,7 @@ def scrape_uuid(self, node: ClusterNode) -> str | None: def _restart_node(self, node: ClusterNode, overrides: dict | None = None, + extra_cli: list[str] = [], drop_disk: bool = False): self.redpanda.stop_node(node) if drop_disk: @@ -132,6 +133,7 @@ def _restart_node(self, auto_assign_node_id=True, omit_seeds_on_idx_one=False, override_cfg_params=overrides, + extra_cli=extra_cli, ) def _wait_until_healthy(self, @@ -153,6 +155,7 @@ def is_healthy(): @cluster(num_nodes=3) @parametrize(mode="cfg-override") + @parametrize(mode="cli-override") @parametrize(mode="no-override") def test_ghost_node_join_fail(self, mode): to_stop = self.redpanda.nodes[0] @@ -205,6 +208,18 @@ def test_ghost_node_join_fail(self, mode): ], ), drop_disk=False, ) + elif mode == "cli-override": + self.logger.debug( + f"Override with known-good uuid/id via command line options: {THE_OVERRIDE}" + ) + self._restart_node( + to_stop, + extra_cli=[ + "--node-id-overrides", + f"{current_uuid}:{old_uuid}:{initial_to_stop_id}", + ], + drop_disk=False, + ) elif mode == "no-override": self.logger.debug( "Omit the override to confirm that we're still stuck in that case"