**Cassandane::TestSuite::SearchFuzzy**
**************************************


NAME
====

Cassandane::TestSuite::SearchFuzzy - tests for fuzzy search and
indexing


HELPER METHODS
==============


start_echo_extractor
--------------------

   $self->start_echo_extractor(%params);

This starts an attachment extractor server as configured in the
imapd.conf "search_attachment_extractor_url" config value.  It answers
"HEAD" requests with "204", "GET" requests with "404", and echoes the
request body back for any other method.

Valid parameters are:

* tracedir

   A directory in which the extractor touches one empty file per
   request, named "req<n>_<method>_<guid>", so tests can assert which
   requests it got.

* trace_delay_seconds

   Seconds to sleep before writing the trace file.

* response_delay_seconds

   Seconds to sleep before sending the response; may be an arrayref of
   per-request delays, where requests beyond the end of the array are
   not delayed.

* fail_content

   A regex; requests whose body matches it are answered with "500"
   instead of being extracted. Use "fail_until_file" to disable this
   while the extractor is running.

* fail_until_file

   A file name; once that file exists, "fail_content" stops taking
   effect and matching requests are extracted normally.

* wait_for_file

   A file name; the extractor blocks each request (for up to 60
   seconds) until that file shows up, which also blocks the squatter
   that made the request.
