mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-08 07:53:20 +00:00
We already have in test/cql-pytest various tests for UDF in the bigger context of UDA (test_uda.py), WASM (test_wasm.py) and permissions, but somehow we never had a file for simple tests only for UDF, so we add one here, test/cql-pytest/test_udf.py We add a test for checking something which was already assumed in test_permissions.py - that it is possible to create two different UDFs with the same name and different parameters, and then you must specify the parameters when you want to DROP one of them. The test confirms that ScyllaDB's and Cassandra's behavior is identical in this, as hoped. To allow the test to run on both ScyllaDB and Cassandra, it needs to support both Lua (for ScyllaDB) or Java (for Cassandra), and we introduce a fixture to make it easier to support both. This fixture can later be used in more tests added to this file. Signed-off-by: Nadav Har'El <nyh@scylladb.com>