Current upgrade dtest rely on a ccm node function to get_highest_supported_sstable_version() that looks for r'Feature (.*)_SSTABLE_FORMAT is enabled' in the log files. Starting from scylla-6.0 ME_SSTABLE_FORMAT is enabled by default and there is no cluster feature for it. Thus get_highest_supported_sstable_version() returns an empty list resulting in the upgrade tests failures. This change introduces a seperate API path that returns the highest supported sstable format (one of la, mc, md, me) by a scylla node. Fixes scylladb/scylladb#19772 Backports to 6.0 and 6.1 required. The current upgrade test in dtest checks scylla upgrades up to version 5.4 only. This patch is a prerequisite to backport the upgrade tests fix in dtest. Closes scylladb/scylladb#19787
14 lines
386 B
Python
14 lines
386 B
Python
# Copyright 2021-present ScyllaDB
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
def test_system_uptime_ms(rest_api):
|
|
resp = rest_api.send('GET', "system/uptime_ms")
|
|
resp.raise_for_status()
|
|
|
|
|
|
def test_system_highest_sstable_format(rest_api):
|
|
resp = rest_api.send('GET', "system/highest_supported_sstable_version")
|
|
resp.raise_for_status()
|
|
assert resp.json() == "me"
|