summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* bump major versiontm/upgradeThom May2018-02-151-1/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* chefstyle 0.6Thom May2018-02-1532-274/+257
| | | | Signed-off-by: Thom May <thom@chef.io>
* Fix default perms on cookbook_artifact objectsSUSTAIN-728/cb-artifact-acl-endpointsNolan Davidson2017-10-271-1/+1
| | | | | | | | | | The ACLs for `cookbook_artifact` objects currently do not include the creator of the object. Adding the `:create` option to the `set_data` call (which forwards it on to the `set` method on the data store), allows the `cookbook_artifact` object to have the creator added to its ACL. Signed-off-by: Nolan Davidson <ndavidson@chef.io>
* bump version for releasev13.1.0Lamont Granquist2017-07-171-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove debuggingLamont Granquist2017-07-141-2/+0
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* add the universe endpointLamont Granquist2017-07-143-1/+36
| | | | | | | | | because it makes sense for chef-zero i need it for integration testing against berks to kill off the uses of the berkshelf-api gem. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* GET /users?email=ME@MINE.COM -- compare emails ignoring casesr/pool-608/search-users-by-case-insensitive-emailStephan Renatus2017-05-311-3/+7
| | | | | | | | | | | | As of POOL-608, the query will return users with the mail `me@mine.com`, too. While this is technically a little incorrect (only the host part is case insensitive), most mail providers treat the user part as case insensitive as well. Note that this implies that the response may involve more than one user. But chef-zero behaves like chef-server does, returning them all. Signed-off-by: Stephan Renatus <srenatus@chef.io>
* implement rfc090 for named nodes endpoint (#264)Jeremy Miller2017-05-252-0/+14
| | | | | * implement rfc090 for named nodes endpoint Signed-off-by: Jeremy J. Miller <jm@chef.io>
* Release Chef Zero 13.0.0tm/6_0Thom May2017-04-031-1/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* Remove cookbook segmentsThom May2017-03-2910-87/+103
| | | | | | | | This implements RFC 67, Cookbook Segment Deprecation, for the default backend of Chef Zero. It also does a little bit of work to make API versions more ergonomic. Signed-off-by: Thom May <thom@may.lt>
* bumping to 5.3.2 to fix chef/chef buildsv5.3.2Lamont Granquist2017-03-281-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix hardcoded default acls to match chef-serverStephan Renatus2017-03-141-10/+6
| | | | | | | | | Due to a bug in oc-chef-pedant[1], we'd never noticed that this doesn't return what it should return to match chef-server. [1]: https://github.com/chef/chef-server/pull/1145 Signed-off-by: Stephan Renatus <srenatus@chef.io>
* release 5.3.1 to unbreak chef buildsv5.3.1Thom May2017-03-081-1/+1
| | | | Signed-off-by: Thom May <thom@chef.io>
* bumping version to 5.3.0v5.3.0Lamont Granquist2017-02-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* change require per hashie authorLamont Granquist2017-02-021-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* bump version to 5.2.0 for releasev5.2.0Lamont Granquist2017-01-231-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* favor metadata.json over metadata.rbLamont Granquist2017-01-231-6/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Merge pull request #233 from chef/tm/support_bang_operatorLamont Granquist2016-12-142-3/+3
|\ | | | | support ! in searches
| * support ! in searchestm/support_bang_operatorThom May2016-08-022-3/+3
| | | | | | | | Signed-off-by: Thom May <thom@may.lt>
* | Release 5.1.15.1.1-releaseScott Christopherson2016-12-131-1/+1
| | | | | | | | Signed-off-by: Scott Christopherson <scott@chef.io>
* | Fix pagination with start parametersnls/fix-start-paginationNathan L Smith2016-12-051-21/+13
| | | | | | | | | | | | | | | | | | | | | | This builds on fixes added in #247 and additional tests added in chef/chef-server#1028. Handle the query parameters in the search method instead of the get method to make them more consistent and work properly when start values are given. Signed-off-by: Nathan L Smith <smith@chef.io>
* | Handle the start and rows parameters correctlynls/SPOOL-436/toomanyrowsNathan L Smith2016-12-041-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chef Zero would, on a search request using the "start" or "rows" parameters, always return all rows. This change makes it so only the correct number of rows are returned or the results start at the correct index. This change will make the tests added in oc-chef-pedant in chef/chef-server#1028 pass. Also update the Gemfile to use HTTPS URLs for Git sources, remove unused comments, and use the Chef Gem from RubyGems as the previous comment suggested. Signed-off-by: Nathan L Smith <smith@chef.io>
* | Fix a few chefstyle warningscontribTim Smith2016-09-224-11/+9
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Bump version to 5.1.0jk/releaseJohn Keiser2016-09-071-1/+1
| |
* | remove create additions flaglcg/remove-create-additionsLamont Granquist2016-09-0240-63/+63
| | | | | | | | | | | | FFI_Yajl has never implemented this flag Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Revert "remove create additions flag"Lamont Granquist2016-09-0240-63/+63
| | | | | | | | This reverts commit c674dfeacf773579a2eb56cb3c02428268452b50.
* | remove create additions flagLamont Granquist2016-09-0240-63/+63
| | | | | | | | | | | | FFI_Yajl has never implemented this flag Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | store ACEs by client/usermp/SPOOL-340Marc Paradise2016-08-263-14/+52
| | | | | | | | | | | | | | | | | | | | | | Chef Server has the ability to return users and clients separately within an GET ACL request when `detail=granular`. To support that, we need to store them separately and determine if we want to present `actors` or `users` and `clients` at the time of the request. This change makes a reasonable best effort at capturing the creator type (user v client) correctly and uses that for determining its assignment in acls.
* | Bump version to 5.0John Keiser2016-08-241-1/+1
| |
* | Support clients and users fields in ACL PUT requestsmp/SPOOL-197Marc Paradise2016-08-232-2/+12
| |
* | Release 4.9.0tm/4_9_0Thom May2016-08-111-1/+1
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | Ensure that the cookbook version endpoint doesn't trip over itselfThom May2016-08-011-3/+7
|/ | | | Signed-off-by: Thom May <thom@may.lt>
* ChefStyletm/styleThom May2016-07-29102-1133/+1128
| | | | Signed-off-by: Thom May <thom@may.lt>
* Release 4.8.0v4.8.0Thom May2016-07-251-1/+1
| | | | Signed-off-by: Thom May <thom@may.lt>
* Load libraries recursivelytm/recurse_librariesThom May2016-07-251-1/+1
| | | | | | Fixes #161 Signed-off-by: Thom May <thom@may.lt>
* Merge pull request #224 from chef/lcg/rebase-101Thom May2016-07-192-1/+13
|\ | | | | Return HTTP 400 Bad Request on Solr parse error
| * Return HTTP 400 Bad Request on Solr parse errorlcg/rebase-101Steven Danna2016-07-192-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, chef-zero would return an HTTP 500 Internal Server Error when the Solr parser failed. Now, we return HTTP 400 with an error message identical to that of the Erchef server. Returning HTTP 400 also improves the end-user experience since knife returns more sensible error messages. Before this patch: > knife search nodes 'recipes:bar::bar' ERROR: Server returned error 500 for http://127.0.0.1:8889/search... After: > knife search nodes 'recipes:bar::bar' ERROR: knife search failed: invalid search query: 'recipes:bar::bar'
* | Merge pull request #222 from maxlazio/suppress_rescue_log_levelThom May2016-07-191-1/+1
|\ \ | | | | | | Set log level to debug in the rescue block.
| * | Set log level to debug in the rescue block.Marin Jankovski2016-07-071-1/+1
| |/
* | Merge pull request #204 from byplayer/feature/uri_escapeThom May2016-07-191-1/+2
|\ \ | | | | | | support URI specific character in file name
| * | support URI specific character in file namebyplayer2016-03-101-1/+2
| | |
* | | Merge pull request #175 from andrewdotn/masterThom May2016-07-191-4/+2
|\ \ \ | | | | | | | | Fix attempted fall-through in case statement.
| * | | Fix attempted fall-through in case statement.Andrew Neitsch2015-11-251-4/+2
| | | |
* | | | Merge pull request #171 from chef/lcg/chef-version-supportThom May2016-07-191-3/+7
|\ \ \ \ | | | | | | | | | | add patch to support chef_version
| * | | | add patch to support chef_versionlcg/chef-version-supportLamont Granquist2015-10-201-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | most of our metadata is the form of: key "value" but chef_version can be: chef_version ">= 12.3.1", "< 13.0.0" so we need a splat in method messing and need to shovel it into an array. relates to chef/chef#4081
* | | | | Merge pull request #158 from amazon/dash-search-fixThom May2016-07-191-2/+2
|\ \ \ \ \ | | | | | | | | | | | | Fix scary search behavior on terms containing dash character
| * | | | | Fix scary search behavior on terms containing dash characterSergey Tuchkin2015-08-171-2/+2
| | | | | |
* | | | | | Merge pull request #139 from cl-lab-k/add_normal_tagsThom May2016-07-191-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | add normal tags with empty array
| * | | | | | add normal tags with empty arrayHIGUCHI Daisuke2015-06-021-1/+1
| | | | | | |
* | | | | | | Merge pull request #138 from kongslund/request-timeoutThom May2016-07-191-0/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Increase WEBrick request timeout to 300 seconds. Fixes #137