From 1e0e8878787483656edd336ca63b2bbff0791a9f Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Tue, 22 May 2007 18:30:23 +0000 Subject: [PATCH] Adjust test for Luke request handler response git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@540685 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugins/flare/test/flare_context_test.rb | 47 ++++--------------- 1 file changed, 8 insertions(+), 39 deletions(-) diff --git a/client/ruby/flare/vendor/plugins/flare/test/flare_context_test.rb b/client/ruby/flare/vendor/plugins/flare/test/flare_context_test.rb index 28ee813509b..5e61beca162 100755 --- a/client/ruby/flare/vendor/plugins/flare/test/flare_context_test.rb +++ b/client/ruby/flare/vendor/plugins/flare/test/flare_context_test.rb @@ -10,57 +10,26 @@ # See the License for the specific language governing permissions and # limitations under the License. - - require 'test/unit' require 'flare' class Flare::Context def index_info - Solr::Response::IndexInfo.new(<{ - 'status'=>0, - 'QTime'=>7}, - 'fields'=>{ - 'body_zh_text'=>{'type'=>'text_zh'}, - 'type_zh_facet'=>{'type'=>'string'}, - 'subject_era_facet'=>{'type'=>'string'}, - 'call_number_display'=>{'type'=>'text'}, - 'id'=>{'type'=>'string'}, - 'title_text'=>{'type'=>'text'}, - 'isbn_text'=>{'type'=>'text'}, - 'source_facet'=>{'type'=>'string'}, - 'subject_geographic_facet'=>{'type'=>'string'}, - 'author_text'=>{'type'=>'text'}, - 'marc_text'=>{'type'=>'text'}, - 'body_en_text'=>{'type'=>'text'}, - 'author_zh_facet'=>{'type'=>'string'}, - 'title_en_text'=>{'type'=>'text'}, - 'subject_topic_facet'=>{'type'=>'string'}, - 'library_facet'=>{'type'=>'string'}, - 'subject_genre_facet'=>{'type'=>'string'}, - 'external_url_display'=>{'type'=>'text'}, - 'format_facet'=>{'type'=>'string'}, - 'type_en_facet'=>{'type'=>'string'}, - 'author_en_facet'=>{'type'=>'string'}, - 'text'=>{'type'=>'text'}, - 'call_number_facet'=>{'type'=>'string'}, - 'year_facet'=>{'type'=>'string'}, - 'location_facet'=>{'type'=>'string'}, - 'title_zh_text'=>{'type'=>'text_zh'}}, - 'index'=>{ - 'maxDoc'=>1337165, - 'numDocs'=>1337159, - 'version'=>'1174965134952'}} -RUBY_CODE + 'responseHeader'=>{'status'=>0, 'QTime'=>7}, + 'fields'=>{'id'=>{'type'=>'string'}, 'text'=>{'type'=>'text'}}, + 'index'=>{'maxDoc'=>1337165, 'numDocs'=>1337159, 'version'=>'1174965134952'} + } +SOLR_RESPONSE ) end end class FlareContextTest < Test::Unit::TestCase def setup - @flare_context = Flare::Context.new({:solr_url => 'http://localhost:8983/solr'}) + @flare_context = Flare::Context.new({:solr_url => 'http://server:8983/solr'}) end def test_clear