summaryrefslogtreecommitdiff
path: root/lib/chef_zero/chef_data
Commit message (Collapse)AuthorAgeFilesLines
* Added display_name in the normalize_user.antima-gupta2020-09-241-0/+1
| | | | Signed-off-by: antima-gupta <agupta@msystechnologies.com>
* Additional gatesrequiresTim Smith2020-08-201-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Substitute require for require_relativeTim Smith2019-12-292-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-293-9/+14
| | | | | | Autocorrect with the latest chefstyle Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fixesTim Smith2019-03-181-14/+14
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* fixes for new chefstyleLamont Granquist2018-07-034-12/+12
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* 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>
* Disable Hashie method override warnsAdam Shannon2018-03-161-1/+5
| | | | Signed-off-by: Adam Shannon <adamkshannon@gmail.com>
* chefstyle 0.6Thom May2018-02-153-155/+157
| | | | Signed-off-by: Thom May <thom@chef.io>
* Remove cookbook segmentsThom May2017-03-292-49/+69
| | | | | | | | 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>
* 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>
* change require per hashie authorLamont Granquist2017-02-021-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>
* Fix a few chefstyle warningscontribTim Smith2016-09-221-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* remove create additions flaglcg/remove-create-additionsLamont Granquist2016-09-021-5/+5
| | | | | | FFI_Yajl has never implemented this flag Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Revert "remove create additions flag"Lamont Granquist2016-09-021-5/+5
| | | | This reverts commit c674dfeacf773579a2eb56cb3c02428268452b50.
* remove create additions flagLamont Granquist2016-09-021-5/+5
| | | | | | FFI_Yajl has never implemented this flag Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* store ACEs by client/usermp/SPOOL-340Marc Paradise2016-08-262-14/+41
| | | | | | | | | | | 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.
* Support clients and users fields in ACL PUT requestsmp/SPOOL-197Marc Paradise2016-08-231-1/+11
|
* ChefStyletm/styleThom May2016-07-294-305/+305
| | | | 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 #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 #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
| | |
* | | Move default keys logic into ActorDefaultKeyEndpoint; fix #putjr/pedant-keys-2Jordan Running2016-02-241-0/+2
| | |
* | | Make user and client keys endpoints pass Pedant specsJordan Running2016-02-241-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | | fix necessary for metadata gemlcg/metadata-gemLamont Granquist2016-02-041-0/+5
| | | | | | | | | | | | | | | | | | there's a Kernel#gem method in ruby because someone thought that would be a great idea, kind of messes up method_missing when the method isn't missing...
* | | Make default policy ACLs look more normalJohn Keiser2016-01-271-9/+1
| | |
* | | Correct policy_groups default permissionsJohn Keiser2016-01-271-1/+9
| | |
* | | Treat policies and policy_groups as directoriesJohn Keiser2016-01-271-4/+3
| | |
* | | changes to test chef-zero ACLs.Chris Doherty2016-01-272-3/+6
| | |
* | | DataNormalizer: Uniqify the list of actors, to satisfy pedant :acl specs ↵Chris Doherty2016-01-261-1/+1
| | | | | | | | | | | | (possibly the list shouldn't repeat to start with, but no one will ever know.
* | | List of containers was missing policy_groups.Chris Doherty2016-01-211-1/+1
| | |
* | | Implement /cookbook_artifacts endpoints.Chris Doherty2015-12-101-11/+16
| | |
* | | Make policy groups and policies bettererJohn Keiser2015-12-072-0/+16
| | |
* | | Bug-for-bug compatibility with Server, where pedant expects an "actors" list ↵Chris Doherty2015-11-131-2/+3
| |/ |/| | | | | of ["pivotal", "pivotal"], but chef-zero has been returning ["pivotal"].
* | Translate admin="true" to admin=trueJohn Keiser2015-09-291-0/+1
| |
* | update chef-zero to be fully compatible with CS12Marc Paradise2015-07-102-4/+4
|/
* Removing 'json' gem dependency, replacing with 'ffi-yajl'tball/chef-zero-yajl-replace-jsontyler-ball2014-09-262-6/+6
|
* Fix bug where GET containers/x/_acl succeededJohn Keiser2014-08-281-1/+1
| | | | even if containers/x did not exist
* Fix issue where default objects didn't report their deletionJohn Keiser2014-08-221-11/+6
|
* Get rspec data working again for creatorless dataJohn Keiser2014-08-221-1/+1
|
* Alias ChefData::CookbookData to CookbookData for backcompatJohn Keiser2014-08-221-0/+2
|
* Move CookbookData and DataNormalizer under ChefDataJohn Keiser2014-08-222-0/+445
|
* Register created owners even on deleted defaultsJohn Keiser2014-08-221-2/+10
|
* Fix cookbook ACLs (set can create directories)John Keiser2014-08-221-11/+16
|
* Make /containers/organizations realJohn Keiser2014-08-222-15/+16
|
* Make acls endpoints return 405 for disallowed methodsJohn Keiser2014-08-221-3/+3
|