summaryrefslogtreecommitdiff
path: root/spec/unit/search
Commit message (Collapse)AuthorAgeFilesLines
* Fix search result paginationssd/search-pagination-fixSteven Danna2015-10-091-1/+19
| | | | | | | | | | | | | | | | | | | The start and rows parameter that are passed as part of the search request are passed directly to Solr on the backend. Results from Solr may contain deleted nodes no longer in the erchef database. Erchef will filter such nodes from the results. Thus, a user may receive fewer rows than they asked for. Incrementing 'start' only by the number of rows received will then result in the next Solr response overlapping the first, which can lead to duplicate results. In the case of a Solr results page that was completely filtered, it would lead to an infinite loop. This commit changes the code to always increment by the requested page size (args[:rows]) when it is non-nil. Incrementing by the length of the response set is still wrong in the case when the args[:rows] is nil, but the server doesn't give us anything else to increment by. Fixes #4027
* Test that search queries make progressSteven Danna2015-03-251-0/+24
|
* Build configurable search string.mcquin/bugfix/search-filteringClaire McQuin2014-12-191-5/+5
|
* Return all matches by default.Claire McQuin2014-12-181-5/+5
|
* Require a file that exists.Claire McQuin2014-12-181-1/+1
|
* No more should.Claire McQuin2014-12-181-15/+15
|
* Make search with filtering match partial_search.Claire McQuin2014-12-181-34/+22
| | | | * Updated search to use argument parameters.
* Update to RSpec 3.Claire McQuin2014-10-291-30/+30
|
* Add InvalidSearchQuery exception for malformed searches.Claire McQuin2014-09-041-2/+3
|
* Fix typos, add partial_search spec.Claire McQuin2014-09-041-46/+99
|
* Updated based on mcq and others feedbackScott Hain2014-09-041-250/+111
|
* Refactored thanks to some great inputScott Hain2014-09-041-0/+4
|
* Updated based on awesome feedbackScott Hain2014-09-041-11/+19
|
* Finished up search with filteringScott Hain2014-09-041-20/+249
|
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-2/+2
|
* s/mock\(/double(/gLamont Granquist2014-01-291-3/+3
|
* s/stub!/stub/gLamont Granquist2014-01-291-2/+2
| | | | fix deprecation warnings
* Normalize whitespace on all filesSeth Vargo2013-09-261-3/+3
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+99
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!