2 # See the "Main" test package for documentation
4 package ZOOM::IRSpy::Test::Search::Dan1;
10 use ZOOM::IRSpy::Test;
11 our @ISA = qw(ZOOM::IRSpy::Test);
17 my @attrs = ( 1..27 # Dan-1
20 foreach my $attr (@attrs) {
21 $conn->irspy_search_pqf("\@attr dan1 1=$attr mineral",
22 {'attr' => $attr}, {},
23 ZOOM::Event::ZEND, \&found,
24 exception => \&error);
30 my($conn, $task, $test_args, $event) = @_;
31 my $attr = $test_args->{'attr'};
33 my $n = $task->{rs}->size();
34 $task->{rs}->destroy();
35 $conn->log("irspy_test", "search on access-point $attr found $n record",
37 update($conn, $attr, 1);
39 return ZOOM::IRSpy::Status::TASK_DONE;
44 my($conn, $task, $test_args, $exception) = @_;
45 my $attr = $test_args->{'attr'};
47 $task->{rs}->destroy();
48 $conn->log("irspy_test", "search on access-point $attr had error: ",
50 update($conn, $attr, 0);
51 zoom_error_timeout_update($conn, $exception);
53 ### How about TEST_BAD if $exception->code() == 121?
54 return ZOOM::IRSpy::Status::TASK_DONE;
59 my ($conn, $attr, $ok) = @_;
61 $conn->record()->store_result('search', 'set' => 'dan-1',