Copy `commitlog_test.py` from scylla-dtest test suite and make it works with `test.py` As a part of the porting process, remove unused imports and markers, remove non-next_gating tests and tests marked with `skip`, 'skip_if', and `xfail` markers. test.py uses `commitlog` directory instead of dtest's `commitlogs`. Also, add `commitlog_segment_size_in_mb: 32` option to test_stop_failure_policy to make _provoke_commitlog_failure work. Tests `test_total_space_limit_of_commitlog_with_large_limit` and `test_total_space_limit_of_commitlog_with_medium_limit` use too much disk space and have too big execution time. Keep them in scylla-dtest for now. Enable the test in `suite.yaml` (run in dev mode only.) Additional modifications to test.py/dtest shim code: - add ScyllaCluster.flush() method - add ScyllaNode.stress() method - add tools/files.py::corrupt_file() function - add tools/data.py::run_query_with_data_processing() function - copy some assertions from dtest Also add missed mode restriction for auth_test.py file. Closes scylladb/scylladb#24946 * github.com:scylladb/scylladb: test.py: dtest: remove slow and greedy tests from commitlog_test.py test.py: dtest: make commitlog_test.py run using test.py test.py: dtest: add ScyllaCluster.flush() method test.py: dtest: add ScyllaNode.stress() method test.py: dtest: add tools/data.py::run_query_with_data_processing() function test.py: dtest: add tools/files.py::corrupt_file() function test.py: dtest: copy some assertions from dtest test.py: dtest: copy unmodified commitlog_test.py
Scylla in-source tests.
For details on how to run the tests, see docs/dev/testing.md
Shared C++ utils, libraries are in lib/, for Python - pylib/
alternator - Python tests which connect to a single server and use the DynamoDB API unit, boost, raft - unit tests in C++ cqlpy - Python tests which connect to a single server and use CQL topology* - tests that set up clusters and add/remove nodes cql - approval tests that use CQL and pre-recorded output rest_api - tests for Scylla REST API Port 9000 scylla-gdb - tests for scylla-gdb.py helper script nodetool - tests for C++ implementation of nodetool
If you can use an existing folder, consider adding your test to it. New folders should be used for new large categories/subsystems, or when the test environment is significantly different from some existing suite, e.g. you plan to start scylladb with different configuration, and you intend to add many tests and would like them to reuse an existing Scylla cluster (clusters can be reused for tests within the same folder).
To add a new folder, create a new directory, and then
copy & edit its suite.ini.