Files
scylladb/test/nodetool/test_version.py
Botond Dénes 8f3b1db37f test/nodetool: nodetool(): return res object instead of just stdout
So callers have access to stderr, return code and more.
This causes some churn in the test, but the changes are mechanical.
2024-03-27 04:18:19 -04:00

15 lines
349 B
Python

#
# Copyright 2023-present ScyllaDB
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#
from rest_api_mock import expected_request
def test_version(nodetool):
res = nodetool("version", expected_requests=[
expected_request("GET", "/storage_service/release_version", response="1.2.3")])
assert res.stdout == "ReleaseVersion: 1.2.3\n"