_acs-admin__acs_admin_require_site_wide (private)
_acs-admin__acs_admin_require_site_wide
Defined in packages/acs-admin/tcl/test/acs-admin-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 {{ # # The site_wide_subsite we create outside of the transaction # because it is cached per thread and rolling it back would make # the cache inconsistent. This happens on those fresh # installations that have not created one yet, for all others, # this value is practically immutable. # set sws [acs_admin::require_site_wide_subsite] aa_run_with_teardown -rollback -test_code { set swp [acs_admin::require_site_wide_package -package_key acs-subsite] set subsite_name site-wide set subsite_parent /acs-admin set subsite_path $subsite_parent/$subsite_name set node_info [site_node::get -url $subsite_path] set node_id [dict get $node_info node_id] set subsite_id [dict get $node_info object_id] aa_true "Site-wide subsite is where expected" {$subsite_id == $sws} aa_true "Site-wide package was mounted properly" [db_0or1row check_swa_package { select 1 from site_nodes n, apm_packages p where n.parent_id = :node_id and p.package_id = n.object_id and p.package_key = 'acs-subsite' and p.package_id = :swp }] } }} { 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_require_site_wide (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle