This reverts commitb0643f8959, reversing changes made toe8b0f8faa9. The change forgot to update sstables_manager::get_highest_supported_format(), which results in /system/highest_supported_sstable_version still returning me, confusing and breaking tests. Fixes: scylladb/scylla-dtest#6435 Closes scylladb/scylladb#27379
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# Copyright 2021-present ScyllaDB
|
|
#
|
|
# SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
|
|
|
|
import pytest
|
|
import requests
|
|
|
|
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"
|
|
|
|
@pytest.mark.parametrize("params", [
|
|
("storage_service/compaction_throughput", "value"),
|
|
("storage_service/stream_throughput", "value")
|
|
])
|
|
def test_io_throughput(rest_api, params):
|
|
resp = rest_api.send("POST", params[0], params={ params[1]: 100 })
|
|
resp.raise_for_status()
|
|
resp = rest_api.send("GET", params[0])
|
|
resp.raise_for_status()
|
|
assert resp.json() == 100
|
|
resp = rest_api.send("POST", params[0], params={ params[1]: 0 })
|
|
resp.raise_for_status()
|
|
resp = rest_api.send("GET", params[0])
|
|
resp.raise_for_status()
|
|
assert resp.json() == 0
|
|
resp = rest_api.send("POST", params[0])
|
|
assert resp.status_code == requests.codes.bad_request
|