You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MB-72184: add UDF drop regression test (bug fixed)
Add regression test
test_system_functions_after_drop_no_key_not_found to verify dropped functions are not returned
in system:functions and no key-not-found behavior occurs. Also include the test
in py-tuq-udf.conf.
Change-Id: Iaf1d57e88639a8cca8671afe8380ba035709f356
Reviewed-on: https://review.couchbase.org/c/testrunner/+/247171
Reviewed-by: <pavan.pb@couchbase.com>
Tested-by: <veena.k@couchbase.com>
self.assertTrue(fnnotinreturned_names, "{0} still present in system:functions".format(fn))
653
+
exceptExceptionase:
654
+
self.log.error(str(e))
655
+
self.fail()
656
+
finally:
657
+
drop_queries= [
658
+
"DROP FUNCTION `default`:`{0}` IF EXISTS".format(function_names[0]),
659
+
"DROP FUNCTION `default`:`default`.`_default`.`{0}` IF EXISTS".format(function_names[1]),
660
+
"DROP FUNCTION `default`:`default`.`_default`.`{0}` IF EXISTS".format(function_names[2]),
661
+
]
662
+
forqueryindrop_queries:
663
+
try:
664
+
self.run_cbq_query(query)
665
+
exceptExceptionase:
666
+
self.log.error(str(e))
667
+
631
668
deftest_inline_query_function(self):
632
669
try:
633
670
self.run_cbq_query("CREATE OR REPLACE FUNCTION func1(nameval) {{ (select * from default:default.{0}.{1} where name = nameval) }}".format(self.scope,self.collections[0]))
0 commit comments