Files
scylladb/test/cluster/test_bad_initial_token.py
Avi Kivity 0ae22a09d4 LICENSE: Update to version 1.1
Updated terms of non-commercial use (must be a never-customer).
2026-04-12 19:46:33 +03:00

21 lines
730 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__)
@pytest.mark.asyncio
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")