_acs-authentication__sync_http_get_document (private)
_acs-authentication__sync_http_get_document
Defined in packages/acs-authentication/tcl/test/sync-test-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 url [::acs::test::url] # When the server is configured with wildcard IPv4 address 0.0.0.0 # and the hostname "localhost", and localhost is mapped on the # host to the IPv6 address "::1", then ns_http to # http://localhost:.../ is rejected, while the connection to the # current IPv4 address http://127.0.0.1:.../ succeeds. However, # the determination of the current IP address requires NaviServer # 4.99.17d3 or newer, so we can't assume, this works always. # # If ad_url is empty, try util_current_location instead. # if {$url eq ""} { set url [util_current_location] } set parsed_url [ns_parseurl $url] if {[dict get $parsed_url host] eq "localhost"} { set url [dict get $parsed_url proto]://127.0.0.1:[dict get $parsed_url port] set url [string trimright $url ":"] } array set result [acs_sc::invoke -error -contract "auth_sync_retrieve" -impl "HTTPGet" -operation "GetDocument" -call_args [list [list SnapshotURL {} IncrementalURL "$url/SYSTEM/dbtest.tcl"]]] aa_equals "result.doc_status is ok" $result(doc_status) "ok" aa_true "result.doc_message is empty" {$result(doc_message) eq ""} aa_equals "result.document is 'success'" $result(document) "success" }} { 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" "sync_http_get_document (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle