mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
The status command has an extensive amount of requests to the server. To be able to handle this more easily, the rest api mock server is refactored extensively to be more flexible, accepting expected requests out-of-order. While at it, the rest api mock server also moves away from a deprecated `aiohttp` feature: providing custom router argument to the `aiohttp` app. This forces us to pre-register all API endpoints that any test currently uses, although due to some templateing support, this is not as bad as it sounds. Still, this is an annoyance, but this point we have implemented almost all commands, so this won't be much a of a problem going forward. Refs: https://github.com/scylladb/scylladb/issues/15588 Closes scylladb/scylladb#17547 * github.com:scylladb/scylladb: tools/scylla-nodetool: implement the status command test/nodetool: rest_api_mock.py: match requests out-of-order test/nodetool: rest_api_mock.py: remove trailing / from request paths test/nodetool: rest_api_mock.py: use static routes test/nodetool: check only non-exhausted requests tools/scylla-nodetool: repair: set the jobThreads request parameter