summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* chefstyle Style/AndOr fixesLamont Granquist2016-03-141-1/+1
| | | | | this is part of our informal style guide, lets make it formal since clearly its not getting followed very well.
* better chef+ruby rspec constraintsLamont Granquist2016-03-031-5/+4
| | | | | | | | lets us use Gem::Dependency constraints directly as rspec constraints for matching Chef::Version and RUBY_VERSION. copies some magic sauce from bundler that does something similar
* auto fixing some rubocopsLamont Granquist2016-02-091-1/+1
| | | | | | | | | Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
* autofixing whitespace copsLamont Granquist2016-02-051-7/+6
| | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | 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"
* Use OHAI_SYSTEM where possibleJay Mundrawala2016-02-021-1/+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
* Rename not_fips rspec filter to no_supported_under_fipsjdm/fix-fips-filterJay Mundrawala2016-01-271-1/+1
|
* Fix inverted filter logic for not_fips rspec filterJay Mundrawala2016-01-271-1/+1
|
* Do openssl initialization in chef-fips test pipelineJay Mundrawala2016-01-251-0/+4
|
* Skip Version0 encrypted databag tests when in fips modeJay Mundrawala2016-01-251-0/+1
| | | | | | aes-256-cbc does not seem to work when openssl is in fips mode. The only other reference I could find to this was: https://access.redhat.com/solutions/176633
* Autofixing Style/PercentLiteralDelimeterslcg/percentliteraldelimetersLamont Granquist2016-01-181-2/+2
| | | | | | 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-141-36/+36
| | | | | | | 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.
* Filter out service test that cannot run inside a WPARshain/disable_aix_mount_testsScott Hain2015-12-181-0/+1
|
* Don't run IPv6 tests on GCEjk/no-ipv6-on-gceJohn Keiser2015-12-151-0/+1
|
* raise if we see a test with :focus set on it in CIlcg/remove-focusLamont Granquist2015-12-041-0/+5
|
* dpkg multipackage and bonus fixesLamont Granquist2015-12-021-1/+4
| | | | | | | | - multipackages dpkg_package - fixes edge conditions in load-current-resource around purging/removing packages that threw errors before - fixes the ability to purge packages that have been removed - adds a lot of functional tests for dpkg_package
* Add tag to skip travisJay Mundrawala2015-11-251-0/+1
|
* Raise error when running 32-bit scripts on Windows Nano.mcquin/nano/disable-32-bitClaire McQuin2015-10-051-0/+1
|
* Merge pull request #4016 from chef/mcquin/nano-ps-scriptClaire McQuin2015-10-021-0/+1
|\ | | | | Use -Command flag on Nano
| * Resolve resource_architecture and guard_architecture stubs.Claire McQuin2015-10-011-0/+1
| |
* | Get rid of state-keeping and reset in ServiceHelpersjk/systemctl-shenanigansJohn Keiser2015-09-281-1/+0
| |
* | Add test for nonzero systemctl exit codeJohn Keiser2015-09-281-0/+2
| |
* | Add system providers to the list of world-stubbed stuffJohn Keiser2015-09-281-0/+1
|/
* Reset Chef main class between testsJohn Keiser2015-09-011-0/+2
|
* Enable 64-bit support for Powershell and Batch scriptsSalim Alam2015-08-191-0/+2
|
* avoid windows service spec unless we're on appveyortm/service_appveyor_onlyThom May2015-07-171-0/+1
|
* Make specs marked ":provider" run againJohn Keiser2015-06-301-13/+19
|
* windows does not have unamelcg/windows-doesnt-have-unameLamont Granquist2015-05-271-1/+1
| | | | although appveyor does, so must have cygwin?
* Merge pull request #3267 from dbjorge/issue-3266Thom May2015-05-201-0/+1
|\ | | | | #3266 Fix bad Windows securable_resource functional spec assumptions for default file owners/groups
| * Pin sid_spec default group expectation to observed behaviorDan Bjorge2015-04-231-0/+1
| |
* | Skip integration tests that aren't working on appveyor environmentdanielsdeleo2015-05-191-1/+2
| |
* | Move LWRP class deprecation warning to const_missingJohn Keiser2015-05-131-0/+3
|/
* Merge pull request #3039 from chef/tball/nightliesTyler Ball2015-03-111-0/+1
|\ | | | | Chef-DK nightlies on debian and el6 have been failing on these timing-based tests, doing a quick fix
| * Changing tactics - excluding test from chef verify because I cannot figure ↵tyler-ball2015-03-101-0/+1
| | | | | | | | out why it fails
* | dscl specs should only run on macjdm/dscl-fixJay Mundrawala2015-03-101-0/+1
| |
* | Dont run useradd_spec on osxjdm/osxJay Mundrawala2015-03-091-0/+1
|/
* Refs #2709: Isolate/fix the no-fork faultAJ Christensen2015-02-091-2/+7
| | | | | | * Share specific recipes code to application parent * Update specs to passing, update specs to RSpec 3. * Specs for set_specific_recipes, solo, client.
* Add config to treat deprecation warnings as errorsdanielsdeleo2015-02-061-0/+6
|
* Clean all RSpec test filters related to Ruby 1.8.7 (issue #2497)Xabier de Zuazo2015-01-271-6/+1
|
* Disable broken registry_spec testsbtm/appveyorJay Mundrawala2014-12-161-0/+1
| | | | | | | | | | The registry_spec has been broken since we switched to rspec 3 :pending was running the tests, but expecting them to fail. There seems to be a bug where if there is a failure outside the test, in our case the before block was silently raising an exception accessing resource_name, the tests would fail as expected but rspec would return with an exit code of 1
* Execute and Script Resource improvementsLamont Granquist2014-12-081-0/+4
| | | | | | | | | | | - Warning on incorrect usage of the command resource in any script resource - Warning on code in script resource being nil - Specs added to force deprecation of incorrect usage in Chef-13 - Specs added around the (supported) incorrect usage in Chef-12 - Cleanup+Modernization of providers and specs - Fixed some global state bugs around the Chef::Log.level in the spec tests
* Explicitly disable :should syntax in spec and mocksClaire McQuin2014-11-031-0/+8
|
* Remove treat_symbols_as_metadata_keys_with_true_values = true, now true by ↵Claire McQuin2014-10-291-7/+0
| | | | default
* disable workstation tests for aix.kaustubh-d2014-10-291-1/+1
|
* Merge pull request #2028 from ClogenyTechnologies/kd/aix-serviceSerdar Sutay2014-10-211-0/+1
|\ | | | | aix service provider
| * fixed functional testskaustubh-d2014-09-231-0/+1
| |
* | Correctly turn off version 3 data bag encryption specs on windows.Serdar Sutay2014-10-201-0/+1
| |
* | Merge branch 'patch-1' of github.com:workmad3/chef into sersut/rebase-chef-1971sersut/rebase-chef-1971Serdar Sutay2014-10-101-0/+4
|\ \
| * | Ensuring no arguments interfere with testsDavid Workman2014-09-141-0/+4
| |/ | | | | | | | | Pushed the ARGV.clear statement required for the apply_spec file up into a before(:suite).