summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rest_base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update http -> https links in tests / commmentshttpsTim Smith2021-09-071-1/+1
| | | | | | | We have to update our test link to get chef-server to pass. I updated all the comments while I was there. Signed-off-by: Tim Smith <tsmith@chef.io>
* remove deprecation warnings for ruby 2.7lcg/uri-encodeLamont Granquist2020-02-191-2/+6
| | | | | | | | we need strict compliance to rfc2396 or else pedant fails, so this is a bit less straightforward than most of the other suggestions on how to fix this problem. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Substitute require for require_relativeTim Smith2019-12-291-4/+4
| | | | | | require_relative is significantly faster and should be used when available. Signed-off-by: Tim Smith <tsmith@chef.io>
* Apply ChefstyleTim Smith2019-12-291-11/+11
| | | | | | Autocorrect with the latest chefstyle Signed-off-by: Tim Smith <tsmith@chef.io>
* remove hashrocket syntaxlcg/remove-hashrocketsLamont Granquist2018-06-261-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix for new rubocop enginelcg/chefstyle-fixesLamont Granquist2018-04-191-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* chefstyle 0.6Thom May2018-02-151-4/+4
| | | | Signed-off-by: Thom May <thom@chef.io>
* implement rfc090 for named nodes endpoint (#264)Jeremy Miller2017-05-251-0/+10
| | | | | * implement rfc090 for named nodes endpoint Signed-off-by: Jeremy J. Miller <jm@chef.io>
* Remove cookbook segmentsThom May2017-03-291-12/+9
| | | | | | | | 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>
* remove create additions flaglcg/remove-create-additionsLamont Granquist2016-09-021-1/+1
| | | | | | FFI_Yajl has never implemented this flag Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Revert "remove create additions flag"Lamont Granquist2016-09-021-1/+1
| | | | This reverts commit c674dfeacf773579a2eb56cb3c02428268452b50.
* remove create additions flagLamont Granquist2016-09-021-1/+1
| | | | | | FFI_Yajl has never implemented this flag Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* ChefStyletm/styleThom May2016-07-291-25/+25
| | | | Signed-off-by: Thom May <thom@may.lt>
* 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
| |
* | support URI specific character in file namebyplayer2016-03-101-1/+2
|/
* Move default keys logic into ActorDefaultKeyEndpoint; fix #putjr/pedant-keys-2Jordan Running2016-02-241-4/+4
|
* Make user and client keys endpoints pass Pedant specsJordan Running2016-02-241-28/+71
| | | | | | | | | | | | | | | | | | | | | | | | | - Implement ActorKeyEndpoint, ActorKeysEndpoint. - Implement user, client keys in `ActorEndpoint#delete`, `#put`. - RestBase - Fix RestErrorResponse exceptions to report actual `rest_path` instead associated with the failed data store operation instead of `request.rest_path`. - Move `json_response`, `already_json_response` args `request_version` and `response_version` into options hash; add docs. - DataError, RestErrorResponse: Pass useful message text to `super`. - RestRouter: Clean up logging - Print request methods, paths and bodies more readably for log_level >= INFO. - Pretty-print RestRequest objects (only printed when log_level == DEBUG). - Server: Change default log_level to `:warn` (to enable logging cleanup above). - `Rakefile`, `spec/run_oc_pedant.rb` - Consume RSpec, Pedant options from `ENV['RSPEC_OPTS']`, `ENV['PEDANT_OPTS']` (see `rake -D`). - Consume `ENV['LOG_LEVEL'` (see `rake -D`). - Clean up ChefZero::Server default opts and move duplicated logic to `start_chef_server` method.
* idiomiaticify conversion of arbitrary input into a real Boolean.Chris Doherty2016-01-211-1/+1
|
* Split policy endpoints into separate endpointsJohn Keiser2015-12-071-0/+4
|
* Implement oc_pedant's REST routes for policyfiles.Chris Doherty2015-11-101-4/+35
|
* Use new json_response API for /server_api_versionAndrew Brown2015-08-141-4/+4
| | | | | We should be using the new API for json_response, since this is a new endpoint.
* Further support for /server_api_versionAndrew Brown2015-08-131-4/+32
| | | | | This adds checks to ensure that the requested API version is checked early on in the request cycle, to comply with RFC041.
* Initial implementation of socketless requestsdanielsdeleo2015-03-271-1/+2
|
* Support /version; fix some global URIsPhil Dibowitz2015-03-261-0/+4
|
* Removing 'json' gem dependency, replacing with 'ffi-yajl'tball/chef-zero-yajl-replace-jsontyler-ball2014-09-261-1/+1
|
* Fix cookbook ACLs (set can create directories)John Keiser2014-08-221-1/+1
|
* Get users endpoint passing oc-chef-pedantJohn Keiser2014-08-221-2/+0
|
* Get users endpoint (mostly) up to oc-chef-pedant standardsJohn Keiser2014-08-221-0/+2
|
* Move all defaults to DefaultCreator, calculate on fly,John Keiser2014-08-221-41/+60
| | | | remember ownership
* Delete acls when object is deletedJohn Keiser2014-08-221-0/+28
|
* Do a better job parsing accepts so browsers can get dataJohn Keiser2014-07-231-1/+9
|
* Add /organizations, /organizations/NAME, /organizations/NAME/_validator_keyJohn Keiser2014-07-071-1/+12
|
* Honor :single_org => 'orgname' parameter everywhereJohn Keiser2014-06-021-1/+1
|
* Make external build_uri calls workJohn Keiser2014-05-271-0/+2
|
* Get single_org backcompat mode workingJohn Keiser2014-04-181-2/+9
|
* Add support for "/organizations/chef" prefixJohn Keiser2014-04-181-0/+1
|
* Pass options through when deleting directories (fixes cookbook and data bag ↵John Keiser2013-10-111-1/+1
| | | | delete)
* Get memory data store pedant cleanJohn Keiser2013-05-271-0/+7
|
* More rounded support for data storesJohn Keiser2013-05-241-1/+10
|
* Make DataStore interface to allow data store to be replacedJohn Keiser2013-05-231-9/+51
|
* remove chef/log requiresJamie Winsor2013-05-051-1/+0
|
* Assume application/json is acceptable if no Accept header was sent.Steven Danna2013-04-301-1/+1
| | | | | | | This is the behavior of the full Chef Server and complies with the RFC. Closes #3
* Fix 405 errorjkeiser2013-01-201-1/+1
|
* Add support for request/response verification to rspec apijkeiser2013-01-201-5/+4
|
* Return exception text with 500 response in routerjkeiser2013-01-111-19/+14
|
* Fix server.load_data test APIv0.9jkeiser2012-12-231-1/+1
|
* Add test start/stop/data APIs, use Thin directly, use Chef::Log instead of putsjkeiser2012-12-231-2/+2
|
* Initial commit (moved/split up from jk/tiny-chef-server branch of jkeiser/chef)jkeiser2012-12-191-0/+82