summaryrefslogtreecommitdiff
path: root/spec/unit/dsl
Commit message (Collapse)AuthorAgeFilesLines
* Remove previously deprecated mixins and Chef::DSL::Recipe::FullDSLchef14_deprecationsTim Smith2018-01-011-13/+0
| | | | | | | | | | | | We wired these up previously with deprecations. They've been deprecated for a long time and are pretty rarely used on the Supermarket. Additionally we have Foodcritic rules to detect their usage: FC102: Deprecated Chef::DSL::Recipe::FullDSL class used FC100: Deprecated Chef::Mixin::Language mixin used FC099: Deprecated Chef::Mixin::LanguageIncludeRecipe mixin used FC098: Deprecated Chef::Mixin::RecipeDefinitionDSLCore mixin used FC097: Deprecated Chef::Mixin::LanguageIncludeAttribute mixin used Signed-off-by: Tim Smith <tsmith@chef.io>
* fix Style/BlockDelimiters, Style/MultilineBlockLayout and 0.42.0 engine upgradeLamont Granquist2016-08-173-15/+16
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Also clear notifications when deleting a resource.Noah Kantrowitz2016-07-281-0/+30
|
* add better resource manipulation APILamont Granquist2016-04-151-0/+335
| | | | | deprecates chef_rewind functionality completely and adds a few more features
* lazy module inclusion into DSL moduleslcg/use-and-lazy-module-includeLamont Granquist2016-03-152-0/+13
| | | | | | Chef::DSL::Recipe::FullDSL.send(:include, MyModule) will now patch all its descendants that it has been included into (works the way actual inheritance works now).
* remove unused block argumentslcg/chefstyle-perfLamont Granquist2016-02-231-1/+1
|
* auto fixing some rubocopsLamont Granquist2016-02-092-2/+2
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-057-32/+28
| | | | | | | | | | | | | | | | | | | | | | 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-024-4/+4
| | | Generated via git ls-files | xargs perl -pi -e "s/(Author.*?<[^@]+@)(?:opscode\\.com|getchef\\.com)(>)/\\1chef.io\\2/gi"
* Replace all Opscode copyrights with Chef Software.Noah Kantrowitz2016-02-023-3/+3
| | | 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-026-6/+6
| | | 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"
* Use OHAI_SYSTEM where possibleJay Mundrawala2016-02-021-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rerunning ohai wastes a lot of time. This should get us back to within our time limits in appveyor even with the perf regression in Ohai. Don't rerun ohai for unit/regsitry_helper_spec Ohai is slow. We don't need to rerun this, it's already run in our spec_helper. Don't keep rerunning ohai for reboot_pending_spec Running Ohai is slow. This should know almost 2 mins off the runtime of the tests. Don't need to run ohai for registry_spec crypto_spec does not need its own ohai cmdlet_spec does not need its own ohai functional registry_helper_spec does not need its own ohai Use spec ohai system for knife configure_spec Use OHAI_SYSTEM for dsc_script_spec use OHAI_SYSTEM for dsc_resource_spec
* 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-147-42/+42
| | | | | | | 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.
* autocorrecting Style/TrailingCommalcg/trailing_commaLamont Granquist2016-01-132-4/+4
| | | | chefstyle -a fixed 1044 occurrances
* remove pending reboot check for ↵mwrock/reboot_pendingMatt Wrock2015-09-101-5/+11
| | | | HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile if not on windows 2003
* Make reboot_pending? look for CBS RebootPendingjhs/fix-reboot_pendingJeremiah Snapp2015-08-111-1/+1
| | | | Ref: https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542
* Add specs for Chef::DSL::Resources.Noah Kantrowitz2015-05-291-0/+85
|
* Update DSL method name to controls_group.mcquin/control_groupClaire McQuin2015-01-151-4/+4
| | | | | | | | | | | | | | | | | | Update to use control_group. Unify wording along control_group. Unify wording along control_group. Fix typo. Enable audit mode. Update to use control_group syntax. Update for audit DSL changes. Update for audit DSL change.
* Adding audit DSL coveragetyler-ball2014-12-171-11/+24
|
* Adding cookbook and recipe information per analytics requesttyler-ball2014-12-171-1/+7
|
* Test including supported serverspec helpers. Updates per PR comments.Serdar Sutay2014-12-171-0/+24
|
* Update to RSpec 3.Claire McQuin2014-10-294-39/+39
|
* Refactoring duplicated code into a separate module. Also making CLI options ↵tyler-ball2014-09-291-110/+8
| | | | more informative
* reboot_pending? no longer has unsupported platforms, so remove the test for it.Chris Doherty2014-09-101-7/+1
|
* Add error logging on failure to load secret file.Claire McQuin2014-08-221-11/+19
|
* Ignore v3 encryption detection on ruby < 2.0.Claire McQuin2014-08-221-1/+1
|
* Add ::encryptor_keys to versioned encryptor classes.Claire McQuin2014-08-221-9/+9
|
* Fix stubs.Claire McQuin2014-08-221-12/+21
|
* Enable autodetection of encrypted data bag items.Claire McQuin2014-08-221-14/+65
|
* Spec out behavior for autodetecting encrypted data bag items.Claire McQuin2014-08-221-1/+57
|
* Update to RSpec 3 syntax.Claire McQuin2014-08-221-23/+41
|
* add shell_out mixins to recipe DSLLamont Granquist2014-07-281-0/+12
|
* CHEF-5086/COOK-3890: Add reboot_pending? to core DSLBryan McLellan2014-02-271-0/+100
| | | | | | Accessible in recipes and in resources, can be used to detect if Windows needs to reboot to finish a software installation or operating system update.
* Remove default implementation of Recipe DSL interfacedanielsdeleo2014-02-191-0/+70
| | | | | Depending on the inheritance tree, the default implementations could incorrectly be preferred to the real ones.
* s/stub!/stub/gLamont Granquist2014-01-291-1/+1
| | | | fix deprecation warnings
* Changing verbiage for unit tests and creating a resource object instead of a ↵PrajaktaPurohit2012-12-191-12/+7
| | | | file resource object
* Removing the unix only test in the unit testPrajaktaPurohit2012-12-191-20/+1
|
* Adding unit tests for the registry_helper_dslPrajaktaPurohit2012-12-191-0/+79
|
* [CHEF-3499] move platform introspection tests into shared examplesdanielsdeleo2012-11-021-150/+8
|
* Fix "platfrom" filename typodanielsdeleo2012-11-021-0/+0
|
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-302-0/+338
The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!