Files
scylladb/test/cluster/test_bad_initial_token.py
Artsiom Mishuta 2259307c2e test.py: remove redundant pytest.mark.asyncio decorators
Fixes: SCYLLADB-1935
2026-05-21 10:36:47 +03:00

20 lines
709 B
Python

# Copyright (C) 2025-present ScyllaDB
#
# SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
#
from test.pylib.manager_client import ManagerClient
import pytest
import logging
logger = logging.getLogger(__name__)
async def test_bad_initial_token(manager: ManagerClient):
# The validity of "initial_token" option is checked in the topology
# coordinator, even if this is the first node being bootstrap, and triggers
# rollback. Rollback currently gets stuck in case of rolling back the first
# node, so use two nodes in the test.
await manager.server_add()
await manager.server_add(config={"initial_token": "etaoin shrdlu"}, expected_error="Failed to assign tokens")