summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rspec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Optimize requires for non-omnibus installsTim Smith2020-08-121-1/+1
| | | | | | 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>
* Substitute require for require_relativeTim Smith2019-12-291-2/+2
| | | | | | require_relative is significantly faster and should be used when available. Signed-off-by: Tim Smith <tsmith@chef.io>
* Apply ChefstyleTim Smith2019-12-291-0/+1
| | | | | | Autocorrect with the latest chefstyle Signed-off-by: Tim Smith <tsmith@chef.io>
* Initial brand refactoringTensibai2019-04-251-2/+2
| | | | Signed-off-by: Tensibai <tensibai@iabis.net>
* fixes for new chefstyleLamont Granquist2018-07-031-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove hashrocket syntaxlcg/remove-hashrocketsLamont Granquist2018-06-261-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* chefstyle 0.6Thom May2018-02-151-2/+4
| | | | Signed-off-by: Thom May <thom@chef.io>
* Fix a few chefstyle warningscontribTim Smith2016-09-221-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* ChefStyletm/styleThom May2016-07-291-33/+33
| | | | Signed-off-by: Thom May <thom@may.lt>
* Make user and client keys endpoints pass Pedant specsJordan Running2016-02-241-1/+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 cookbook_artifactJohn Keiser2016-01-141-4/+15
|
* ChefZero::RSpec support for cookbook_artifacts.cd/artifacts-rspec-supportChris Doherty2015-12-101-0/+11
|
* Fix typo for CR.jk/chef-fs-tests-plus-cdChris Doherty2015-12-081-1/+1
|
* Make policy groups and policies bettererJohn Keiser2015-12-071-1/+12
|
* Add rspec support for policies.Chris Doherty2015-12-071-0/+11
|
* Fix variable error causing when_the_chef_server issuesJohn Keiser2015-06-191-2/+2
|
* Make server_scope: :context work againjk/server_scope_fixJohn Keiser2015-06-191-19/+21
|
* Access server opts in example context not describe contextdanielsdeleo2015-05-181-5/+7
|
* Don't pollute global Chef server optionsjk/chef_server_optionsJohn Keiser2015-04-061-4/+5
|
* Add :organization and :data_scope options to with_chef_serverjk/org_and_scopeJohn Keiser2015-03-191-222/+225
| | | | | - :organization => 'org' lets you specify that an org should be created and pointed at - :data_scope => :context lets you specify that the server and any data should be kept around for the entire example group
* Removing 'json' gem dependency, replacing with 'ffi-yajl'tball/chef-zero-yajl-replace-jsontyler-ball2014-09-261-1/+1
|
* Add default for cookbook()John Keiser2014-08-291-3/+12
|
* Fix invite and org membership rspec data loadingJohn Keiser2014-08-261-1/+1
|
* Add organization, acl, group, container rspec macrosrspec_enterpriseJohn Keiser2014-08-261-37/+158
|
* Add APIs for enterprisey thingsJohn Keiser2014-08-221-8/+55
|
* rspec: Default port to 8900, check if options are rightJohn Keiser2014-05-271-7/+12
|
* Allow custom server options in rspec helper moduleconfigure-rspec-optsdanielsdeleo2013-11-181-1/+12
|
* Allow cookbook NAME, VERSION, { :frozen => true }John Keiser2013-06-031-2/+2
|
* Don't require thin with chef_zero/rspecJohn Keiser2013-05-191-1/+0
|
* Don't need silent option anymore [ci skip]Seth Vargo2013-05-191-1/+0
|
* Try replacing Thin with PumaSeth Vargo2013-05-191-1/+1
|
* configure Chef::Config within when_the_chef_server block if theJamie Winsor2013-05-081-0/+18
| | | | constant is defined
* remove dependency on Chef::ConfigJamie Winsor2013-05-051-15/+0
| | | | | | this also removes automatic configuration of the Chef::Config singleton within an RSpec "when the chef server" contextual block. Since ChefZero isn't just for testing Knife this should not be a problem.
* Add support for request/response verification to rspec apijkeiser2013-01-201-1/+12
|
* Make ChefZero::RSpec work with Ruby 1.8.7jkeiser2013-01-171-1/+1
|
* Make failing tests quicker by setting retries=0jkeiser2013-01-111-0/+1
|
* Allow tags in rspec DSL, clear Chef::Config after each testjkeiser2013-01-041-2/+11
|
* Let rspec handle ctrl+c, not Thinjkeiser2012-12-311-1/+1
|
* Make rspec api only start up server oncejkeiser2012-12-311-29/+45
|
* Add RSpec DSL for working with a ChefZero serverjkeiser2012-12-231-0/+69