_search__object_utilities (private)
_search__object_utilities
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 {{ set searchable_types [list] db_foreach get_object_types { select object_type from acs_object_types } { set expected [expr {[callback::impl_exists -callback search::datasource -impl $object_type] || [acs_sc_binding_exists_p FtsContentProvider $object_type]}] set computed [search::searchable_type_p -object_type $object_type] aa_equals "Is '$object_type' searchable?" $computed $expected if {$computed} { lappend searchable_types $object_type } } if {[llength $searchable_types] > 0} { foreach sample [db_list_of_lists get_searchable_objects [subst { select min(object_id), object_type from acs_objects where object_type in ([ns_dbquotelist $searchable_types]) group by object_type order by object_type asc }]] { lassign $sample object_id object_type set datasource [search::object_datasource -object_id $object_id] aa_true "Object '$object_id' of type '$object_type' will return a non null datasource" [llength $datasource] set datasource [search::object_index -object_id $object_id] aa_true "Object '$object_id' of type '$object_type' will return a non null datasource after index" [llength $datasource] set url [search::object_url -object_id $object_id] aa_false "Object '$object_id' produces a valid URL -> $url" [catch { ns_parseurl $url }] aa_false "Unindexing does not bomb." [catch { search::object_unindex -object_id $object_id }] } } }} { 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" "object_utilities (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle