_acs-subsite__group_localization_leftovers (private)

 _acs-subsite__group_localization_leftovers

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

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) db_string db_string (public) _acs-subsite__group_localization_leftovers _acs-subsite__group_localization_leftovers _acs-subsite__group_localization_leftovers->aa_false _acs-subsite__group_localization_leftovers->aa_log _acs-subsite__group_localization_leftovers->aa_log_result _acs-subsite__group_localization_leftovers->db_string

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        aa_false "Leftover group localization message keys do not exist in the database" [db_string leftovers_exist {
            select case when exists (select 1 from lang_message_keys k
                                     where package_key = 'acs-translations'
                                     and message_key like 'group_title_%'
                                     and not exists (select 1 from groups
                                                     where group_id = cast(split_part(k.message_key, '_', 3) as integer)))
            then 1 else 0 end
            from dual
        }]
    }} {
          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" "group_localization_leftovers (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: