_search__misc (private)

 _search__misc

Defined in packages/search/tcl/test/search-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_section aa_section (public) apm_package_id_from_key apm_package_id_from_key (public) _search__misc _search__misc _search__misc->aa_equals _search__misc->aa_log _search__misc->aa_log_result _search__misc->aa_section _search__misc->apm_package_id_from_key

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
[ hide source ] | [ make this the default ]
Show another procedure: