summaryrefslogtreecommitdiff
path: root/spec/unit/client_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that solo specific code is run at the proper timeThom May2016-05-161-1/+1
| | | | | | ie, only when we're in OG mode and not in local mode. Signed-off-by: Thom May <thom@chef.io>
* autofixing whitespace copsLamont Granquist2016-02-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | 4174 Style/SpaceInsideHashLiteralBraces 1860 Style/SpaceAroundOperators 1336 Style/SpaceInsideBlockBraces 1292 Style/AlignHash 997 Style/SpaceAfterComma 860 Style/SpaceAroundEqualsInParameterDefault 310 Style/EmptyLines 294 Style/IndentationConsistency 267 Style/TrailingWhitespace 238 Style/ExtraSpacing 212 Style/SpaceBeforeBlockBraces 166 Style/MultilineOperationIndentation 144 Style/TrailingBlankLines 120 Style/EmptyLineBetweenDefs 101 Style/IndentationWidth 82 Style/SpaceAroundBlockParameters 40 Style/EmptyLinesAroundMethodBody 29 Style/EmptyLinesAroundAccessModifier 1 Style/RescueEnsureAlignment
* Update all auth email address from opscode.com and getchef.com to chef.io.Noah Kantrowitz2016-02-021-3/+3
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Copyright year update for 2016 and massive cleanup.Noah Kantrowitz2016-02-021-1/+1
| | | Generated via git ls-files | xargs perl -pi -e "s/[Cc]opyright (?:\([Cc]\) )?((?\!$(date +%Y))\\d{4})(-\\d{4})?([, ][ \d]+)*(,|(?= ))/Copyright \\1-$(date +%Y),/g"
* Merge pull request #4409 from chef/lcg/suppress-reporter-failuresLamont Granquist2016-01-271-1/+1
|\ | | | | Lcg/suppress reporter failures
| * suppress reporter failures by using validate_utf8=falselcg/suppress-reporter-failuresLamont Granquist2016-01-261-1/+1
| | | | | | | | | | | | | | - doesn't turn off the utf8 validation in the rest of the rest API - has to use a different rest object because we have to pass options in the constructor - the handling of Chef::Config in Chef::Client is just awful
* | Fix client_specjdm/1.3-fipsJay Mundrawala2016-01-261-2/+6
| |
* | Rename openssl-fips to fips and add messagesJay Mundrawala2016-01-251-2/+2
| |
* | Use sign v1.3 when fips mode is selectedJay Mundrawala2016-01-251-2/+17
|/
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-1/+1
| | | | | | See chef/chefstyle#11 for analysis and discussion. We select '{}' since audit of our source code shows that is the most common, and that used to be the dominant learning paradigm (e.g. in ruby 1.9 pickaxe book.
* ServerAPI will return a raw hash, so do thattm/fix_failing_testThom May2016-01-141-2/+1
|
* Use double quotes by defaultThom May2016-01-141-10/+10
| | | | | | | This is an entirely mechanically generated (chefstyle -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
* Convert all uses of Chef::REST to Chef::ServerAPItm/no_more_restThom May2016-01-111-9/+9
| | | | | | | In the process, stop auto-expanding JSON in the HTTP client, and let individual classes control that themselves. Fixes #2737, Fixes #3518
* Use signing protocol 1.1 by defaultjdm/default-auth-1.1Jay Mundrawala2015-12-101-20/+2
| | | | | | | | | | | All supported Chef servers support the 1.1 signing protocol. There is no reason to continue using 1.0, and removing it as the default allows us to remove a bunch of code that tries to upgrade 1.0 to 1.1 when the node name is too long. If the user specifies 1.0 as the auth protocol version from this point on, they will have to guarantee that the node name is not too long.
* Ensure that our list of recipes is backwards compattm/duplicate_recipesThom May2015-09-291-1/+2
| | | | | | | | | Prior to chef 12.2 we included unexpanded 'cookbook' names for default recipes. In 12.2, we moved to expanded ('cookbook::default') names, which broke some searches. However, some of our users have now moved to searching for expanded, so we need to cater for both. Fixes #3767
* Use the dynamic policy builder everywheredanielsdeleo2015-09-171-0/+4
|
* Fixup spec to only expect wrapped exception when audit mode is enabledjdm/fix-audit-excepJay Mundrawala2015-06-191-19/+35
|
* Raise errors at the end of the client run, for proper exiting.Claire McQuin2015-05-271-4/+9
|
* remove configuration optionClaire McQuin2015-05-271-37/+3
|
* Use shared contexts and shared examples to minimize code duplication.Claire McQuin2015-05-271-418/+73
|
* Mark run failed on failed audits unless configured to audit as warning.Claire McQuin2015-05-271-121/+179
| | | | Remove unnecessary newline from RunFailedWrappingError backtrace
* Stub `windows?` on ChefConfig so it applies to configdanielsdeleo2015-05-201-2/+2
|
* add/fix node attributesLamont Granquist2015-05-181-1/+5
| | | | | | * fix node[:recipes] * add node[:expanded_run_list] * add node[:cookbooks]
* fix unit test stubLamont Granquist2015-05-041-1/+1
|
* cleaned up rspec testIgor Shpakov2015-04-211-5/+1
|
* revised rspec testIgor Shpakov2015-04-201-9/+6
|
* small tweak to wordingIgor Shpakov2015-04-091-1/+1
|
* added rspec testIgor Shpakov2015-04-091-0/+20
| | | | testing early fail inside 'run#begin' block.
* Add minimal ohai mode option flagminimal-ohai-modedanielsdeleo2015-03-271-0/+13
|
* We should not change how exceptions are raised if audit mode is disabledJay Mundrawala2015-03-171-21/+70
|
* Add specs for audit-mode command-line and configuration settings.Claire McQuin2014-12-171-0/+1
|
* Rescuing Exception blind was covering up an unexpected errortyler-ball2014-12-171-26/+99
|
* Test including supported serverspec helpers. Updates per PR comments.Serdar Sutay2014-12-171-21/+99
|
* Disable audit phase during specs in order not to break the existing rspec ↵Serdar Sutay2014-12-171-0/+5
| | | | configuration.
* Add a Chef::Audit::Controls object for 'controls'Claire McQuin2014-12-171-0/+9
|
* Update to RSpec 3.Claire McQuin2014-10-291-86/+86
|
* Updated client_spec to not run event loggerJay Mundrawala2014-10-221-1/+1
|
* Disable unforked interval runs.Claire McQuin2014-10-011-25/+0
| | | | | | | | | | Clarify error message. Move fork and interval logic to application (specs pending). Clean code logic, fix specs. Allow unforked client runs with daemonize or splay
* Put cache at HOME/.chef.d if /var/chef can't be accessed.Claire McQuin2014-05-221-0/+1
|
* update stubs for new node.save behaviorClaire McQuin2014-05-151-2/+3
|
* Removed puts for testingJoe Richards2014-04-011-1/+0
|
* Added unit test for setting chef environment to single characterJoe Richards2014-04-011-0/+17
|
* add specs for setting nodename based on machinenameLamont Granquist2014-03-051-0/+37
|
* Add permanent run list modification option to Chef::Clientdanielsdeleo2014-02-201-2/+34
|
* Modernize and organize Chef::Client specsdanielsdeleo2014-02-201-233/+279
|
* - Adding X-Remote-Request-Id to the set of headers for every request from ↵PrajaktaPurohit2014-02-071-1/+2
| | | | | | | | | | CCR and knife that will be sent to erchef - Each knife request has a different X-Remote-Request-Id, where as it remains the same for all requests originating from the same chef-client run. - Adding and fixing tests
* [CHEF-3506] suppress final node save when using override run listdanielsdeleo2014-02-031-2/+2
|
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-2/+2
|
* s/mock\(/double(/gLamont Granquist2014-01-291-8/+8
|
* s/stub!/stub/gLamont Granquist2014-01-291-11/+11
| | | | fix deprecation warnings