_search__queue_dequeue (private)

 _search__queue_dequeue

Defined in packages/search/tcl/test/search-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_silence_log_entries aa_silence_log_entries (public) aa_true aa_true (public) _search__queue_dequeue _search__queue_dequeue _search__queue_dequeue->aa_false _search__queue_dequeue->aa_log _search__queue_dequeue->aa_log_result _search__queue_dequeue->aa_silence_log_entries _search__queue_dequeue->aa_true

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        set object_id [db_string get_object {select max(object_id) from acs_objects}]

        foreach event {INSERT UPDATE DELETE} {
            db_transaction {
                search::queue -object_id $object_id -event $event
                aa_true "Event '$event' was queued for '$object_id'" [db_0or1row check {
                    select event_date from search_observer_queue
                    where object_id = :object_id and event = :event and event_date = current_timestamp
                }]
                search::dequeue -object_id $object_id -event $event -event_date $event_date
                aa_false "Event '$event' at '$event_date' was dequeued for '$object_id'" [db_0or1row check {
                    select event_date from search_observer_queue
                    where object_id = :object_id and event = :event and event_date = :event_date
                }]
            }
        }

        aa_silence_log_entries -severities {error notice} {
            aa_true "Invalid event throws an error" [catch {
                search::queue -object_id $object_id -event BOGUS
            }]
        }
    }} {
          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" "queue_dequeue (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: