| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
require is quite slow in Ruby and doing requires for things you've already required is also slow. We've used this simple hack in Chef to speed up our requires. In the omnibus installs we patch how rubygems works to make this somewhat pointless, but this will help non-omnibus installs
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
|
|
|
|
| |
require_relative is significantly faster and should be used when available.
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
|
|
|
|
| |
Autocorrect with the latest chefstyle
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
|
|
| |
Signed-off-by: Tensibai <tensibai@iabis.net>
|
| |
|
|
|
|
| |
Rubocop made it worse
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
|
|
| |
Signed-off-by: Tim Smith <tsmith@chef.io>
|
| |
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
|
|
| |
Signed-off-by: Thom May <thom@chef.io>
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
| |
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
Signed-off-by: Jeremy J. Miller <jm@chef.io>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
FFI_Yajl has never implemented this flag
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
|
|
| |
This reverts commit c674dfeacf773579a2eb56cb3c02428268452b50.
|
| |
|
|
|
|
| |
FFI_Yajl has never implemented this flag
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Signed-off-by: Thom May <thom@may.lt>
|
| |
|
|
| |
Signed-off-by: Thom May <thom@may.lt>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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'
|
| | |
|
| | |
|
| |
|
|
| |
under /organizations (otherwise ChefFS will not understand it)
|
| |
|
|
| |
server.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
'container_name'.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Solr-related calls.
|
| | |
|
| |\
| |
| | |
Remove dependency on chef
|
| | |
| |
| |
| |
| |
| |
| | |
You don't want chef-zero depending on chef, since chef already depends
on chef-zero and circular dependencies are a pain to deal with.
This closes issue #136
|
| | |
| |
| |
| | |
org (as well as adding the user to the groups)
|
| | |
| |
| |
| |
| | |
We should be using the new API for json_response, since this is a new
endpoint.
|