summaryrefslogtreecommitdiff
path: root/spec/unit/application_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-171-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Add shorthand :syslog and :win_evt for log_location configjr/logger-configJordan Running2016-03-291-0/+27
|
* autofixing whitespace copsLamont Granquist2016-02-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* Merge pull request #4481 from chef/jdm/fips-58Jay Mundrawala2016-02-031-1/+1
|\ | | | | Allow use of command line fips switch for knife
| * Refactor chef-config fips configjdm/fips-58Jay Mundrawala2016-01-281-1/+1
| | | | | | | | | | | | | | | | This refactor allows for better mocking in the tests. Before, when init_openssl was called, classes would get monkey patched. While this may not cause problems now, some day in the future, somebody would have been like "WTF is going on".
* | Some more author domain stragglers.Noah Kantrowitz2016-02-021-1/+1
| |
* | Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-021-1/+1
| | | | | | Created via git ls-files | xargs perl -pi -e "s/(Copyright.*?), Opscode(,)? Inc(\.)?/\\1, Chef Software Inc./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"
* Fix config load expectations for windowsdanielsdeleo2016-01-271-1/+1
|
* Reorganize application tests to catch fatalsdanielsdeleo2016-01-271-146/+158
|
* Rename openssl-fips to fips and add messagesJay Mundrawala2016-01-251-1/+1
|
* Do openssl initialization from applicationsJay Mundrawala2016-01-251-0/+10
| | | | | | | | | | | | | | | | | | | Some notes: * Add module overrides for fips We need to use the SHA1 module under OpenSSL because the openssl functions called by Digest::SHA1 cause openssl to crash the process. We use the Digest::MD5 over the OpenSSL::MD5 module because md5 is not allowed when in fips mode and causes the process to crash. While we work through these issues, we're going to allow it to pass by compiling the ruby md5 implementation. * Use OpenSSL::Digest::SHA256 instead of Digest::SHA256 Digest::SHA256 is broken in fips mode because it uses unapproved APIs. They cause the process to terminate.
* Use double quotes by defaultThom May2016-01-141-8/+8
| | | | | | | 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.
* Moving the proxy export to environment varibles into Chef::Configtyler-ball2015-12-091-181/+1
|
* Refs #2709: Isolate/fix the no-fork faultAJ Christensen2015-02-091-0/+35
| | | | | | * Share specific recipes code to application parent * Update specs to passing, update specs to RSpec 3. * Specs for set_specific_recipes, solo, client.
* Update to RSpec 3.Claire McQuin2014-10-291-74/+74
|
* add spec tests for http_proxy fixesLamont Granquist2014-08-141-9/+32
|
* fix indentingClaire McQuin2014-06-031-2/+2
|
* add error handling, set *_proxy instead of *_PROXYClaire McQuin2014-06-031-47/+105
|
* use URI to parse/build proxiesClaire McQuin2014-06-031-35/+11
|
* rename configure_environment_variables to configure_proxy_environment_variablesClaire McQuin2014-06-031-19/+19
|
* percent encode @, : in proxy user/passClaire McQuin2014-06-031-0/+18
|
* set ENV vars for http proxiesClaire McQuin2014-06-031-0/+105
|
* Fix rspec warningsdanielsdeleo2014-04-241-0/+6
|
* Prevent tests from overriding rspec's trap handlerdanielsdeleo2014-04-241-0/+1
| | | | Otherwise you cannot ctrl-C the tests.
* remove some more deprecation warningsLamont Granquist2014-01-291-1/+1
|
* s/mock\(/double(/gLamont Granquist2014-01-291-1/+1
|
* fix "please stub a default message first"Lamont Granquist2014-01-291-17/+17
| | | | | | | | | | | | fixes this kind of thing: 1) Chef::Application class method: fatal! should log an error message to the logger Failure/Error: Chef::Log.stub!(:fatal).with("blah").and_return(true) #<IO:0x0000010106ab88> received :puts with unexpected arguments expected: ("FATAL: blah") got: (no args) Please stub a default value first if message might be received with other args as well. # /Users/lamont/oc/chef/spec/unit/application_spec.rb:234:in `block (3 levels) in <top (required)>'
* CHEF-4725: Validate 'log_location' setting on log initializationNikhil Benesch2014-01-201-5/+7
| | | | | | | | | | | | | | Previously, a Mixlib::Config setter method verified that 'log_location' was set to a writeable file or a valid IO stream. Due to the way Mixlib::Config handles `default` and `merge!`, this setter method would not fire if the 'log_location' was left unconfigured or if it was set on the command line, resulting in inconsistent error handling. This commit moves the validation logic out of the configuration layer and into the log initializion layer. This ensures that error handling is consistent, regardless of where the 'log_location' setting is configured. Validation logic is also simplified, relying on the MonoLogger class to open and configure any necessary IO streams.
* Fixup specs to handle config jail featuredanielsdeleo2013-10-161-32/+7
|
* Make configuration errors more informativedanielsdeleo2013-10-161-1/+5
|
* Load client/solo config via ConfigFetcherdanielsdeleo2013-10-161-35/+25
| | | | | * Uses Chef::HTTP::Simple rather than Chef::REST to fetch files * Re-use error handling logic in ConfigFetcher
* Add --config-file-jail to avoid loading user knife.rb in testsJohn Keiser2013-10-151-1/+4
|
* Fix unit test against new -z argumentJohn Keiser2013-10-101-2/+2
|
* default case should be same as log_level :autoLamont Granquist2013-09-241-15/+16
| | | | | - this was failing when not run on a tty - expands test to ensure default case looks just like :auto case
* Don't bother cleaning up Chef::Config after tests or initializing things to ↵John Keiser2013-09-161-6/+0
| | | | default values before
* Fix tests that rely on leaky Chef::ConfigJohn Keiser2013-09-161-1/+2
|
* Avoid conflicts w/ rspec's ARGV in testsdanielsdeleo2013-07-111-0/+3
|
* added tests for CHEF-4115Yoni Yalovitsky2013-06-181-1/+54
|
* fix specs for rubygems < 2.0danielsdeleo2013-02-271-1/+3
|
* Change default output to formatters when in consoledanielsdeleo2012-11-201-2/+57
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+239
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!