Audit tests are vulnerable to noise from LOGIN queries (because AUTH audit logs can appear at any time). Most tests already use the `filter_out_noise` mechanism to remove this noise, but tests focused on AUTH verification did not, leading to sporadic failures. This change adds a filter to ignore AUTH logs generated by the default "cassandra" user, so tests only verify logs from the user created specifically for each test. Additionally, this PR: - Adds missing `nonlocal new_rows` statement that prevented some checks from being called - Adds a testcase for audit logs of `cassandra` user Fixes: https://github.com/scylladb/scylladb/issues/25069 Better backport those test changes to 2025.3. 2025.2 and earlier don't have `./cluster/dtest/audit_test.py`. - (cherry picked from commite634a2cb4f) - (cherry picked from commitdaf1c58e21) - (cherry picked from commitaef6474537) - (cherry picked from commit21aedeeafb) Parent PR: #25111 Closes scylladb/scylladb#25140 * github.com:scylladb/scylladb: test: audit: add cassandra user test case test: audit: ignore cassandra user audit logs in AUTH tests test: audit: change names of `filter_out_noise` parameters
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.