_acs-tcl__ad_parameter_from_file (private)

 _acs-tcl__ad_parameter_from_file

Defined in packages/acs-tcl/tcl/test/defs-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) ad_parameter_from_file ad_parameter_from_file (public) _acs-tcl__ad_parameter_from_file _acs-tcl__ad_parameter_from_file _acs-tcl__ad_parameter_from_file->aa_equals _acs-tcl__ad_parameter_from_file->aa_log _acs-tcl__ad_parameter_from_file->aa_log_result _acs-tcl__ad_parameter_from_file->ad_parameter_from_file

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        foreach section [ns_configsections] {
            set section_name [ns_set name $section]
            if {[regexp ^ns/server/[ns_info server]/acs(.*)\$ $section_name _ package_key]} {
                set found_p 1
                set package_key [string trimleft $package_key /]
                foreach key [ns_set keys $section] {
                    set expected [ns_set get $section $key]
                    set result [ad_parameter_from_file $key $package_key]
                    aa_equals "Value is expected"  $result $expected
                }
            }
        }

        if {![info exists found_p]} {
            aa_log "No parameter exposed to the API was found in the server conf."
        }
    }} {
          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" "ad_parameter_from_file (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: