content-search-procs.tcl

Tests for search queue triggers

Location:
packages/acs-content-repository/tcl/test/content-search-procs.tcl

Procedures in this file

Detailed information

_acs-content-repository__cr_item_search_triggers (private)

 _acs-content-repository__cr_item_search_triggers

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) _acs-content-repository__cr_item_search_triggers _acs-content-repository__cr_item_search_triggers _acs-content-repository__cr_item_search_triggers->aa_equals _acs-content-repository__cr_item_search_triggers->aa_false _acs-content-repository__cr_item_search_triggers->aa_log _acs-content-repository__cr_item_search_triggers->aa_log_result _acs-content-repository__cr_item_search_triggers->aa_run_with_teardown

Testcases:
No testcase defined.

cr_item_search::assert_in_queue (private)

 cr_item_search::assert_in_queue [ -revision_id revision_id ] \
    [ -events events ]

We use this test many times. Check if revision_id is in the search observer queue

Switches:
-revision_id (optional)
-events (optional)
List of events to check for (INSERT,UPDATE,DELETE)

Partial Call Graph (max 5 caller/called nodes):
%3 test_cr_item_search_triggers cr_item_search_triggers (test acs-content-repository) cr_item_search::assert_in_queue cr_item_search::assert_in_queue test_cr_item_search_triggers->cr_item_search::assert_in_queue aa_true aa_true (public) cr_item_search::assert_in_queue->aa_true db_string db_string (public) cr_item_search::assert_in_queue->db_string

Testcases:
cr_item_search_triggers

cr_item_search::assert_not_in_queue (private)

 cr_item_search::assert_not_in_queue [ -revision_id revision_id ] \
    [ -events events ]

We use this test many times. Check if revision_id is in the search observer queue

Switches:
-revision_id (optional)
-events (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_cr_item_search_triggers cr_item_search_triggers (test acs-content-repository) cr_item_search::assert_not_in_queue cr_item_search::assert_not_in_queue test_cr_item_search_triggers->cr_item_search::assert_not_in_queue aa_false aa_false (public) cr_item_search::assert_not_in_queue->aa_false db_string db_string (public) cr_item_search::assert_not_in_queue->db_string

Testcases:
cr_item_search_triggers

cr_item_search::remove_from_queue (private)

 cr_item_search::remove_from_queue [ -revision_id revision_id ]

Remove all entries from queue

Switches:
-revision_id (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_cr_item_search_triggers cr_item_search_triggers (test acs-content-repository) cr_item_search::remove_from_queue cr_item_search::remove_from_queue test_cr_item_search_triggers->cr_item_search::remove_from_queue db_dml db_dml (public) cr_item_search::remove_from_queue->db_dml

Testcases:
cr_item_search_triggers

cr_item_search::test_setup (private)

 cr_item_search::test_setup

setup test environment for search trigger tests

Partial Call Graph (max 5 caller/called nodes):
%3 test_cr_item_search_triggers cr_item_search_triggers (test acs-content-repository) cr_item_search::test_setup cr_item_search::test_setup test_cr_item_search_triggers->cr_item_search::test_setup ad_tmpnam ad_tmpnam (public) cr_item_search::test_setup->ad_tmpnam content::folder::new content::folder::new (public) cr_item_search::test_setup->content::folder::new content::folder::register_content_type content::folder::register_content_type (public) cr_item_search::test_setup->content::folder::register_content_type

Testcases:
cr_item_search_triggers
[ show source ]