_acs-authentication__sync_file_get_document (private)

 _acs-authentication__sync_file_get_document

Defined in packages/acs-authentication/tcl/test/sync-test-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) aa_true aa_true (public) acs_sc::invoke acs_sc::invoke (public) _acs-authentication__sync_file_get_document _acs-authentication__sync_file_get_document _acs-authentication__sync_file_get_document->aa_equals _acs-authentication__sync_file_get_document->aa_log _acs-authentication__sync_file_get_document->aa_log_result _acs-authentication__sync_file_get_document->aa_true _acs-authentication__sync_file_get_document->acs_sc::invoke

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set path "$::acs::rootdir/www/SYSTEM/dbtest.tcl"

    aa_log "Getting path '$path'"

    array set result [acs_sc::invoke  -error  -contract "auth_sync_retrieve"  -impl "LocalFilesystem"  -operation "GetDocument"  -call_args [list [list SnapshotPath {} IncrementalPath $path]]]

    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) [template::util::read_file $path]
}} {
          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_file_get_document (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: