_acs-admin__acs_admin_apm_parameter_section_slider (private)

 _acs-admin__acs_admin_apm_parameter_section_slider

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

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) apm_parameter_section_slider apm_parameter_section_slider (private) db_list db_list (public) _acs-admin__acs_admin_apm_parameter_section_slider _acs-admin__acs_admin_apm_parameter_section_slider _acs-admin__acs_admin_apm_parameter_section_slider->aa_log _acs-admin__acs_admin_apm_parameter_section_slider->aa_log_result _acs-admin__acs_admin_apm_parameter_section_slider->aa_true _acs-admin__acs_admin_apm_parameter_section_slider->apm_parameter_section_slider _acs-admin__acs_admin_apm_parameter_section_slider->db_list

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    foreach package_key [db_list get_packages {
        select package_key from apm_package_types
    }] {
        set sections [db_list apm_parameter_sections {
            select distinct(section_name)
            from apm_parameters
            where package_key = :package_key
        }]
        if {[llength $sections] <= 1} {
            set right_sections_number 0
        } else {
            set right_sections_number 0
            foreach section $sections {
                if {$section ne ""} {
                    incr right_sections_number
                }
            }
            incr right_sections_number 2
        }
        set proc_sections [lindex [apm_parameter_section_slider $package_key] 0 3]
        aa_true "Sections for '$package_key' are in the right number ([llength $proc_sections] == $right_sections_number)" {[llength $proc_sections] == $right_sections_number}
        foreach section $proc_sections {
            set section_name [lindex $section 0]
            set section_length [llength $section]
            aa_true "Section '$section_name' for '$package_key' is composed by 3 elements ($section_length)" {$section_length == 3}
        }
    }
}} {
          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" "acs_admin_apm_parameter_section_slider (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: