_search__misc (private)
_search__misc
Defined in packages/search/tcl/test/search-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ aa_section search::dotlrn::get_community_id # # This is the package we will test when no dotlrn is # there. Basically, any package will do. # set package_id [db_string get_applet_package { select max(package_id) from apm_packages }] if {[apm_package_installed_p dotlrn]} { # # We try testing a package coming from a community_applet # and fall back to any package in case we find none. # set package_id [db_string get_applet_package { select coalesce((select max(package_id) from dotlrn_community_applets), :package_id) from dual }] set site_node [site_node::get_node_id_from_object_id -object_id $package_id] set dotlrn_package_id [site_node::closest_ancestor_package -node_id $site_node -package_key dotlrn -include_self] set expected_community_id [db_string get_community_id { select community_id from dotlrn_communities_all where package_id = :dotlrn_package_id } -default ""] } else { set expected_community_id "" } aa_equals "dotlrn community_id is returned as expected for package '$package_id'" [search::dotlrn::get_community_id -package_id $package_id] $expected_community_id aa_section search::driver_name aa_equals "Driver name is returned as expected" [search::driver_name] [parameter::get -package_id [apm_package_id_from_key search] -parameter FtsEngineDriver] }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "misc (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle