sul-dlss/sw_index_tests — pull request #37 by ndushay (2014-08-21 22:22:34+00:00)
Title: fix production failures

@lmcglohon
fixing the following production failures:

Failures:

1) advanced search subject and keyword subject -congresses, keyword IEEE xplore keyword
Failure/Error: resp.should have_at_most(8650).results
expected at most 8650 results, got 8666
# ./spec/advanced_search_spec.rb:113:in `block (4 levels) in '

2) advanced search pub info subject 'soviet union and historiography' and pub info '1910-1911 pub info 2010
Failure/Error: resp.should have_at_most(136700).results
expected at most 136700 results, got 136729
# ./spec/advanced_search_spec.rb:339:in `block (4 levels) in '

3) advanced search pub info subject 'soviet union and historiography' and pub info '1910-1911 pub info 2011
Failure/Error: resp.should have_at_most(125350).results
expected at most 125350 results, got 125364
# ./spec/advanced_search_spec.rb:344:in `block (4 levels) in '

4) advanced search facets format video, location green, language english before topics selected
Failure/Error: resp.should have_at_most(35200).results
expected at most 35200 results, got 35247
# ./spec/advanced_search_spec.rb:402:in `block (4 levels) in '

5) advanced search facets format video, location green, language english add topic feature films
Failure/Error: resp.should have_at_most(18000).results
expected at most 18000 results, got 18040
# ./spec/advanced_search_spec.rb:407:in `block (4 levels) in '

6) Chinese Han variants 敎 654E (variant) => 教 6559 (std trad) behaves like expected result size title search has between 3490 and 3510 results
Failure/Error: resp.should have_at_most(max).results
expected at most 3510 results, got 3514
Shared Example Group: "expected result size" called from ./spec/cjk/chinese_han_variants_spec.rb:128
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

7) Japanese Everything Searches Imperial behaves like both scripts get expected result size everything search has between 1450 and 1500 results
Failure/Error: resp.should have_at_most(max).results
expected at most 1500 results, got 1502
Shared Example Group: "both scripts get expected result size" called from ./spec/cjk/japanese_everything_spec.rb:39
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

8) Japanese Everything Searches Imperial behaves like both scripts get expected result size everything search has between 1450 and 1500 results
Failure/Error: resp.should have_at_most(max).results
expected at most 1500 results, got 1502
Shared Example Group: "both scripts get expected result size" called from ./spec/cjk/japanese_everything_spec.rb:39
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

9) Japanese Title searches tale kanji behaves like both scripts get expected result size title search has between 2351 and 2460 results
Failure/Error: resp.should have_at_most(max).results
expected at most 2460 results, got 2461
Shared Example Group: "both scripts get expected result size" called from ./spec/cjk/japanese_title_spec.rb:156
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

10) Japanese Title searches tale kanji behaves like both scripts get expected result size title search has between 2351 and 2460 results
Failure/Error: resp.should have_at_most(max).results
expected at most 2460 results, got 2461
Shared Example Group: "both scripts get expected result size" called from ./spec/cjk/japanese_title_spec.rb:156
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

11) Default Request Handler war and peace
Failure/Error: resp.should include('title_245a_display' => /^war and peace$/i).in_each_of_first(20).documents
expected each of the first 20 documents to include {"title_245a_display"=>/^war and peace$/i} in response: {"responseHeader"=>{"status"=>0, "QTime"=>2229, "params"=>{"facet"=>"false", "fl"=>"id,title_245a_display", "q"=>"war and peace", "testing"=>"sw_index_test", "wt"=>"ruby"}}, "response"=>{"numFound"=>15088, "start"=>0, "docs"=>[{"title_245a_display"=>"In war and peace", "id"=>"10530694"}, {"title_245a_display"=>"War and peace", "id"=>"5324884"}, {"title_245a_display"=>"War and peace", "id"=>"5407815"}, {"title_245a_display"=>"War and peace", "id"=>"6307090"}, {"id"=>"6209236", "title_245a_display"=>"War and peace"}, {"id"=>"2228132", "title_245a_display"=>"War and peace"}, {"id"=>"8220997", "title_245a_display"=>"War and peace"}, {"title_245a_display"=>"War and peace", "id"=>"1741869"}, {"title_245a_display"=>"War and peace", "id"=>"1741863"}, {"id"=>"6851684", "title_245a_display"=>"War and peace"}, {"id"=>"5661161", "title_245a_display"=>"War and peace"}, {"title_245a_display"=>"War and peace", "id"=>"3771299"}, {"title_245a_display"=>"War and peace", "id"=>"2879277"}, {"title_245a_display"=>"War and peace", "id"=>"2875751"}, {"title_245a_display"=>"War and peace", "id"=>"2875749"}, {"title_245a_display"=>"War and peace", "id"=>"2875745"}, {"title_245a_display"=>"War and peace", "id"=>"2875741"}, {"title_245a_display"=>"War and peace", "id"=>"4107534"}, {"title_245a_display"=>"War and peace", "id"=>"1892583"}, {"title_245a_display"=>"War and peace", "id"=>"6990377"}]}}
Diff:
@@ -1,2 +1,34 @@
-[{"title_245a_display"=>/^war and peace$/i}]
+{"responseHeader"=>
+ {"status"=>0,
+ "QTime"=>2229,
+ "params"=>
+ {"facet"=>"false",
+ "fl"=>"id,title_245a_display",
+ "q"=>"war and peace",
+ "testing"=>"sw_index_test",
+ "wt"=>"ruby"}},
+ "response"=>
+ {"numFound"=>15088,
+ "start"=>0,
+ "docs"=>
+ [{"title_245a_display"=>"In war and peace", "id"=>"10530694"},
+ {"title_245a_display"=>"War and peace", "id"=>"5324884"},
+ {"title_245a_display"=>"War and peace", "id"=>"5407815"},
+ {"title_245a_display"=>"War and peace", "id"=>"6307090"},
+ {"id"=>"6209236", "title_245a_display"=>"War and peace"},
+ {"id"=>"2228132", "title_245a_display"=>"War and peace"},
+ {"id"=>"8220997", "title_245a_display"=>"War and peace"},
+ {"title_245a_display"=>"War and peace", "id"=>"1741869"},
+ {"title_245a_display"=>"War and peace", "id"=>"1741863"},
+ {"id"=>"6851684", "title_245a_display"=>"War and peace"},
+ {"id"=>"5661161", "title_245a_display"=>"War and peace"},
+ {"title_245a_display"=>"War and peace", "id"=>"3771299"},
+ {"title_245a_display"=>"War and peace", "id"=>"2879277"},
+ {"title_245a_display"=>"War and peace", "id"=>"2875751"},
+ {"title_245a_display"=>"War and peace", "id"=>"2875749"},
+ {"title_245a_display"=>"War and peace", "id"=>"2875745"},
+ {"title_245a_display"=>"War and peace", "id"=>"2875741"},
+ {"title_245a_display"=>"War and peace", "id"=>"4107534"},
+ {"title_245a_display"=>"War and peace", "id"=>"1892583"},
+ {"title_245a_display"=>"War and peace", "id"=>"6990377"}]}}
# ./spec/default_req_handler_spec.rb:205:in `block (2 levels) in '

Deprecation Warnings:

`RSpec::Matchers::Pretty#expected_to_sentence` is deprecated. Use `RSpec::Matchers::Pretty#to_sentence(expected)` instead. Called from /usr/local/rvm/gems/ruby-2.1.0@sw_index_tests/gems/rspec-solr-1.0.1/lib/rspec-solr/include_documents_matcher.rb:42:in `failure_message_for_should'.

`expect(collection).to have_at_least(2300).results` is deprecated. Use the rspec-collection_matchers gem or replace your expectation with something like `expect(collection.size).to be >= 2300` instead. Called from /jenkins/jobs/sw_index_tests/workspace/spec/advanced_search_spec.rb:81:in `block (4 levels) in '.
`expect(collection).to have_at_most(3000).results` is deprecated. Use the rspec-collection_matchers gem or replace your expectation with something like `expect(collection.size).to be <= 3000` instead. Called from /jenkins/jobs/sw_index_tests/workspace/spec/advanced_search_spec.rb:82:in `block (4 levels) in '.
`expect(collection).to have_at_least(200000).results` is deprecated. Use the rspec-collection_matchers gem or replace your expectation with something like `expect(collection.size).to be >= 200000` instead. Called from /jenkins/jobs/sw_index_tests/workspace/spec/advanced_search_spec.rb:103:in `block (4 levels) in '.
Too many uses of deprecated 'the have matcher'. Pass `--deprecation-out` or set `config.deprecation_stream` to a file for full output.

If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.

556 deprecation warnings total

Finished in 8 minutes 17 seconds
1973 examples, 11 failures