_acs-tcl__test_ad_register_proc (private)
_acs-tcl__test_ad_register_proc
Defined in packages/acs-tcl/tcl/test/request-processor-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 expected_values [list OK [list a_flag 1 another_flag 2] [list 1 2 3 4 5] [list a_flag 1 another_flag 2 args [list foo bar]] [list a_flag DEFAULT1 another_flag DEFAULT2] [list a_flag DEFAULT1 another_flag DEFAULT2 args [list]] ] set procs [list request_processor::test::a_proc_with_no_args request_processor::test::a_proc_with_some_flags request_processor::test::a_proc_with_any_args request_processor::test::a_proc_with_flags_and_args] set i 0 foreach proc_name $procs { regsub -all {:} $proc_name {_} path set r [util::http::get -url [acs::test::url]/$path] aa_equals "Request for '$proc_name' successful" [dict get $r status] 200 aa_equals "Request for '$proc_name' returns the expected value" [join [dict get $r page]] [join [lindex $expected_values $i]] incr i } set procs_invoked_without_args [list request_processor::test::a_proc_with_some_flags request_processor::test::a_proc_with_flags_and_args] foreach proc_name $procs_invoked_without_args { regsub -all {:} $proc_name {_} path append path __invoked_without_args set r [util::http::get -url [acs::test::url]/$path] aa_equals "Request for '$proc_name' invoked without args successful" [dict get $r status] 200 aa_equals "Request for '$proc_name' invoked without args returns the expected value" [join [dict get $r page]] [join [lindex $expected_values $i]] incr i } }} { 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" "test_ad_register_proc (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle