From fed74d44fb2a68d44efeee00bf66fef2e9ba0425 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 31 Dec 2025 13:27:50 +0000 Subject: [PATCH] Add Scylla-specific variants of snapshot validation tests Co-authored-by: mykaul <4655593+mykaul@users.noreply.github.com> --- test/nodetool/test_snapshot.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/nodetool/test_snapshot.py b/test/nodetool/test_snapshot.py index 9d59204ebf..7f3ff2e13f 100644 --- a/test/nodetool/test_snapshot.py +++ b/test/nodetool/test_snapshot.py @@ -304,6 +304,22 @@ def test_snapshot_keyspace_with_ktlist(nodetool, cassandra_only): "error processing arguments: when specifying the keyspace-table list for a snapshot, you should not specify keyspace(s)"]) +def test_snapshot_table_with_ktlist_scylla(nodetool, scylla_only): + check_nodetool_fails_with( + nodetool, + ("snapshot", "--table", "tbl1", "-kt", "ks1.tbl1"), + {"expected_requests": []}, + ["error processing arguments: when specifying the keyspace-table list for a snapshot, you should not specify table(s)"]) + + +def test_snapshot_keyspace_with_ktlist_scylla(nodetool, scylla_only): + check_nodetool_fails_with( + nodetool, + ("snapshot", "-kt", "ks1.tbl1", "ks1"), + {"expected_requests": []}, + ["error processing arguments: when specifying the keyspace-table list for a snapshot, you should not specify keyspace(s)"]) + + def test_snapshot_keyspace_with_tables(nodetool, scylla_only): check_nodetool_fails_with( nodetool,