summaryrefslogtreecommitdiff
path: root/spec/unit/application
Commit message (Collapse)AuthorAgeFilesLines
* Adding support for rfc 62 exit code 213Jeremy J. Miller2016-10-061-0/+10
| | | | Signed-off-by: Jeremy J. Miller <jm@chef.io>
* Merge branch 'master' into configoptionNoah Kantrowitz2016-08-021-6/+13
|\
| * Use Mixlib::Archive to extract tarballsThom May2016-07-071-6/+6
| | | | | | | | | | | | | | this allows us to be truely cross platform, and also to ignore unsafe paths and permissions. Signed-off-by: Thom May <thom@chef.io>
| * Ensure that chef-solo uses the expected repo dirtm/correct_repo_pathThom May2016-06-241-0/+7
| | | | | | | | | | | | | | | | | | Solo has always defaulted to `/var/chef` but local-mode uses the user's home directory, so we need to ensure that we set the correct path before entering local-mode. Fixes: #5051 Signed-off-by: Thom May <thom@may.lt>
* | First pass on --config-option handling.Noah Kantrowitz2016-06-211-0/+35
|/
* Merge pull request #4957 from chef/tm/solo_fixesThom May2016-05-311-0/+25
|\ | | | | Ensure recipe-url works right in solo
| * Ensure recipe-url works right in solotm/solo_fixesThom May2016-05-201-0/+25
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | * define exit codesSteven Murawski2016-05-232-2/+235
|/ | | | | | | | | | | | * exit code functional specs * audit exit codes * reboot now/reboot failed/reboot pending exit codes * Deal with forked and unforked process and get the right exit code * Reboot Now should really be reboot scheduled * pass exception rather than exit code * updated with sigint and sigterm * support legacy fatal!("", 2) behavior * fixup all fatal! and exit! calls
* Ensure that legacy mode and local mode workThom May2016-05-161-90/+120
| | | | Signed-off-by: Thom May <thom@chef.io>
* Ensure that solo specific code is run at the proper timeThom May2016-05-161-2/+2
| | | | | | ie, only when we're in OG mode and not in local mode. Signed-off-by: Thom May <thom@chef.io>
* fix fips acceptance failuresMatt Wrock2016-04-251-0/+1
|
* Add optional integer argument for --daemonize optionJordan Running2016-03-291-64/+124
|
* Add test for solo.dJay Mundrawala2016-02-242-52/+5
| | | | | | | This commit refactors the spec to use shared examples as the test for client.d and solo.d is the same. knife.d is a little special so it cannot use this.
* Refactor application/client.rb to use DotD mixin for loading client.dJay Mundrawala2016-02-241-5/+5
|
* Use escape_glob_dir for client.d/conf.dJay Mundrawala2016-02-241-4/+4
| | | | | | | | Passing the value of `escape_glob` to Dir.glob does not always work correctly on Windows. Always use forward slashes when globbing, even on Windows. We now do this via `escape_glob_dir`, which calls Pathname.cleanpath, which does the foward slash thing.
* Fix broken load_conf_d_fileJay Mundrawala2016-02-241-2/+5
| | | | Also, do less mocking so the test will catch the error
* Make chef-client read client.dJay Mundrawala2016-02-241-0/+51
| | | | | client.d/*.rb will be read in sorted order. All directories will be ignored.
* remove rm -rf in chef solo recipe_urlLamont Granquist2016-02-102-44/+29
| | | | | | | | | | | - deprecates '-r' used for the recipe_url in chef-solo - adds --delete-entire-chef-repo option for users who want the old behavior back. - cleans up some old code closes #3802 closes #1515 closes #1751
* autofixing whitespace copsLamont Granquist2016-02-054-10/+9
| | | | | | | | | | | | | | | | | | | | | | 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
* auto-fixing some easy copschefstyle/fixesLamont Granquist2016-02-031-1/+1
| | | | | | | | | | | | | 3 Performance/CaseWhenSplat: Place when conditions with a splat at the end of the when branches. 1 Style/ElseAlignment: Align else with if. 1 Style/EvenOdd: Replace with Fixnum#even?. 1 Style/MethodDefParentheses: Use def with parentheses when there are parameters. 3 Style/PercentQLiterals: Do not use %Q unless interpolation is needed. Use %q. 3 Style/SpaceAfterColon: Space missing after colon. 2 Style/SpaceAfterMethodName: Do not put a space between a method name and the opening parenthesis. 2 Style/Tab: Tab detected. 1 Style/TrailingUnderscoreVariable: Do not use trailing _s in parallel assignment. 1 Style/UnneededCapitalW: Do not use %W unless interpolation is needed. If not, use %w.
* Merge pull request #4481 from chef/jdm/fips-58Jay Mundrawala2016-02-031-0/+52
|\ | | | | Allow use of command line fips switch for knife
| * Refactor chef-config fips configjdm/fips-58Jay Mundrawala2016-01-281-4/+4
| | | | | | | | | | | | | | | | 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".
| * Allow use of command line fips switch for knifeJay Mundrawala2016-01-281-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | This somewhat worked before. However, it was just for knife bootstrap. It also didn't support --no-fips in the case where it was in your knife.rb and you decided that you didn't want to use fips for that one call. The assumption here is fips mode you run knife with is the fips mode the node will get. This has the nice property that validatorless bootstraps will talk to the chef server in fips mode if the node is requested to be in fips mode.
* | Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-022-2/+2
| | | | | | 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-024-4/+4
|/ | | 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"
* 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.
* Use double quotes by defaultThom May2016-01-144-19/+19
| | | | | | | 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.
* really fix copslcg/really-fix-copsLamont Granquist2016-01-121-5/+5
|
* Windows cli tools should have color true by defaultadamedx/windows-color-defaultsAdam Edwards2015-10-062-4/+4
|
* Fix false positive in test, make test more strict.danielsdeleo2015-09-211-1/+1
|
* Configure named run list via command line or config filedanielsdeleo2015-09-211-0/+13
|
* fix typoDeWaRs12062015-06-291-1/+0
|
* fix solo_spec according previous changeEmmanuel Iturbide2015-06-291-2/+4
|
* Merge pull request #3299 from juliandunn/remove-audit-mode-experimental-warningThom May2015-06-091-5/+0
|\ | | | | Remove experimental warning on audit mode.
| * Remove unneeded test if we're not marking audit as "experimental"Julian C. Dunn2015-04-291-5/+0
| |
* | Stub `windows?` on ChefConfig so it applies to configdanielsdeleo2015-05-201-2/+2
|/
* Add --no-listen option to disable zero binding to portdanielsdeleo2015-04-011-0/+10
|
* Disable the exitstatus 3 testBryan McLellan2015-03-161-4/+1
| | | | | This relies on a timer and even though we increased it in #3039 we've still seen intermittent failures from it. Mark it volatile and move on.
* Updating comment for future userstball/nightliestyler-ball2015-03-101-1/+2
|
* Changing tactics - excluding test from chef verify because I cannot figure ↵tyler-ball2015-03-101-2/+4
| | | | out why it fails
* Nightlies on debian and el6 have been failing on these timing-based tests, ↵tyler-ball2015-03-101-4/+4
| | | | doing a quick fix
* use Chef::Config.platform_specific_pathJay Mundrawala2015-02-121-2/+2
|
* Fix broken tests in jenkinsJay Mundrawala2015-02-121-2/+2
|
* Refs #2709: Isolate/fix the no-fork faultAJ Christensen2015-02-092-0/+12
| | | | | | * Share specific recipes code to application parent * Update specs to passing, update specs to RSpec 3. * Specs for set_specific_recipes, solo, client.
* add json_attribs option for chef-apply commandsonots2015-02-091-0/+16
|
* add testRob Redpath2015-01-251-0/+13
|
* Change expect to allow.mcquin/client_spec_fixClaire McQuin2015-01-231-1/+1
|
* Stub reading of /etc/chef/client.rbClaire McQuin2015-01-231-2/+5
|
* Unit tests for audit-mode in chef-solo.Claire McQuin2014-12-172-30/+39
| | | | | * Audits are disabled by default. * Also, updated spec file to use RSpec :let.
* Explicitly enable audits.Claire McQuin2014-12-171-0/+4
|