_acs-bootstrap-installer__apm_bootstrap_upgrade (private)
_acs-bootstrap-installer__apm_bootstrap_upgrade
Defined in packages/acs-bootstrap-installer/tcl/test/30-apm-load-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 tmpdir [ad_mktmpdir] set root_dir_real [acs_root_dir] try { set ::acs::rootdir $tmpdir set content aaa set tmpfiles [list] # # Put some fake content as .adp and .tcl in the bootstrap # installer folders # file mkdir -- $tmpdir/packages/acs-bootstrap-installer/installer/tcl file mkdir -- $tmpdir/tcl set wfd [ad_opentmpfile filename .tcl] puts -nonewline $wfd $content close $wfd aa_log "copy $filename to $tmpdir/packages/acs-bootstrap-installer/installer/tcl" file copy $filename $tmpdir/packages/acs-bootstrap-installer/installer/tcl set tclfile $tmpdir/tcl/[file tail $filename] file mkdir -- $tmpdir/packages/acs-bootstrap-installer/installer/www file mkdir -- $tmpdir/www set wfd [ad_opentmpfile filename .adp] lappend tmpfiles $filename puts -nonewline $wfd $content close $wfd aa_log "copy $filename to $tmpdir/packages/acs-bootstrap-installer/installer/www" file copy $filename $tmpdir/packages/acs-bootstrap-installer/installer/www set adpfile $tmpdir/www/[file tail $filename] # # Call the API # apm_bootstrap_upgrade -from_version_name from_version_name -to_version_name to_version_name # # Check that files were copied # aa_true "File '$tclfile' exists" [file exists $tclfile] set rfd [open $tclfile r]; set c [read $rfd]; close $rfd aa_equals "Content for '$tclfile' is correct" $c $content aa_true "File '$adpfile' exists" [file exists $adpfile] set rfd [open $adpfile r]; set c [read $rfd]; close $rfd aa_equals "Content for '$adpfile' is correct" $c $content } finally { set ::acs::rootdir $root_dir_real file delete -force -- $tmpdir } }} { 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" "apm_bootstrap_upgrade (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }Generic XQL file: packages/acs-bootstrap-installer/tcl/test/30-apm-load-procs.xql
PostgreSQL XQL file: packages/acs-bootstrap-installer/tcl/test/30-apm-load-procs-postgresql.xql
Oracle XQL file: packages/acs-bootstrap-installer/tcl/test/30-apm-load-procs-oracle.xql