summaryrefslogtreecommitdiff
path: root/spec/unit/search
Commit message (Collapse)AuthorAgeFilesLines
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Use double quotes by defaultThom May2016-01-141-6/+6
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-131-21/+21
| | | | chefstyle -a fixed 1044 occurrances
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-16/+20
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* 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!