_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):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) acs_root_dir acs_root_dir (public) _acs-bootstrap-installer__apm_bootstrap_upgrade _acs-bootstrap-installer__apm_bootstrap_upgrade _acs-bootstrap-installer__apm_bootstrap_upgrade->aa_equals _acs-bootstrap-installer__apm_bootstrap_upgrade->aa_log _acs-bootstrap-installer__apm_bootstrap_upgrade->aa_log_result _acs-bootstrap-installer__apm_bootstrap_upgrade->aa_true _acs-bootstrap-installer__apm_bootstrap_upgrade->acs_root_dir

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

[ hide source ] | [ make this the default ]
Show another procedure: