_acs-tcl__test_apm_package_instance__new (private)

 _acs-tcl__test_apm_package_instance__new

Defined in packages/acs-tcl/tcl/test/acs-tcl-apm-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) aa_true aa_true (public) ad_generate_random_string ad_generate_random_string (public) _acs-tcl__test_apm_package_instance__new _acs-tcl__test_apm_package_instance__new _acs-tcl__test_apm_package_instance__new->aa_log _acs-tcl__test_apm_package_instance__new->aa_log_result _acs-tcl__test_apm_package_instance__new->aa_run_with_teardown _acs-tcl__test_apm_package_instance__new->aa_true _acs-tcl__test_apm_package_instance__new->ad_generate_random_string

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{

    aa_run_with_teardown -rollback -test_code {

        set package_list [db_list get_packages {
            select package_key
              from apm_enabled_package_versions
        }]
        aa_log "List of packages: [list $package_list]"

        foreach package_key $package_list {
            set package_id ""
            set instance_name "$package_key-[ad_generate_random_string]"

            aa_log "Package to be instantiated: $package_key"
            aa_log "Instance name to be added: $instance_name"
            set error_occurred [catch {
                set package_id [apm_package_instance_new  -package_key $package_key  -instance_name $instance_name ]
            } err_men]
            aa_log "Error Message $error_occurred: $err_men "
            aa_true "Setting the new instance succeeded" {$package_id ne ""}
        }
    }
}} {
          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_apm_package_instance__new (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: