Files
scylladb/test/cluster/dtest/tools/cluster.py
Evgeniy Naydanov 57c1035146 test.py: migrate alternator_tests.py from dtest
The test almost unmodified except remove unneeded skipif mark
and unused imports.
2025-05-19 12:27:32 +00:00

25 lines
578 B
Python

#
# Copyright (C) 2025-present ScyllaDB
#
# SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
#
from __future__ import annotations
import logging
from typing import TYPE_CHECKING
from test.cluster.dtest.ccmlib.scylla_node import ScyllaNode
if TYPE_CHECKING:
from test.cluster.dtest.ccmlib.scylla_cluster import ScyllaCluster
logger = logging.getLogger(__name__)
def new_node(cluster: ScyllaCluster, bootstrap: bool = True) -> ScyllaNode:
assert bootstrap is True, "bootstrap=True is supported only"
return cluster.populate(1).nodelist()[-1]