summaryrefslogtreecommitdiff
path: root/spec/functional/resource
Commit message (Collapse)AuthorAgeFilesLines
* Make FileVendor configuration specific to the two implementationssersut/port-policyfile-fixdanielsdeleo2014-10-074-6/+4
| | | | | | | | | | | | | | | | FileVendor previously was configured by storing a closure/anonymous function as a class instance variable. This had the following downsides: * The API was too general, which caused a lot of code repetition * The block was lazily evaluated, which hid errors and made testing more difficult * The closures captured references to classes with references to large data structures, which complicates GC. Since we've only ever had the same two implementations of FileVendor, we can encapsulate configuration of the FileVendor factory by wrapping each configuration option in a method. As a side benefit, arguments to these methods will be eagerly evaluated, which makes it easier to detect errors.
* Merge pull request #2024 from opscode/jdmundrawala/windows_env_pathJay Mundrawala2014-09-301-137/+183
| | | | | | Windows path fix Conflicts: spec/functional/resource/env_spec.rb
* DSCL resource says it doesn't support OS X below 10.7, so don't run it on 10.6.Chris Doherty2014-09-291-1/+2
|
* DscScript resource will raise an error if dsc is not availableJay Mundrawala2014-09-051-3/+4
|
* Merge pull request #1975 from opscode/platform/11-dscBryan McLellan2014-09-031-0/+336
|\ | | | | Platform/11 dsc
| * Switch fileformat to unix, clean up whitespace.Bryan McLellan2014-09-031-336/+336
| | | | | | | | | | Converts a few files from CRLF->LF. Removes some trailing whitespace as well.
| * DSC functional tests with configuration data and parameterizationAdam Edwards2014-09-031-4/+225
| |
| * DSC spec platform detection via WMIAdam Edwards2014-09-031-1/+1
| |
| * Initial dsc_configuration resource implementationAdam Edwards2014-09-031-0/+115
| |
* | Merge pull request #1973 from opscode/sersut/group-spec-fixSerdar Sutay2014-09-041-1/+5
|/ | | | | | Check the group membership using dscl on Mac in specs. Conflicts: spec/functional/resource/group_spec.rb
* Merge pull request #1800 from opscode/sersut/chef#1634Serdar Sutay2014-08-132-1/+199
| | | | | | | | | DSCL User Provider Rewrite Conflicts: .gitignore RELEASE_NOTES.md chef.gemspec lib/chef/provider/user/dscl.rb
* Issue 1754: Chef::Exceptions::Env exception when modifying env resource ↵adamedx2014-08-111-0/+137
| | | | using key_name attribute that differs in case from the environment variable name
* Skip all unsupported platforms in remount testdanielsdeleo2014-06-121-1/+3
|
* fixes and func testsLamont Granquist2014-05-291-11/+14
|
* forgot to mix into remote_file specsLamont Granquist2014-04-211-0/+1
|
* DRY up remote_file func specsLamont Granquist2014-04-111-134/+7
|
* CHEF-5198: add func tests for remote_fileLamont Granquist2014-04-091-2/+192
| | | | | | | | | | | | | | | this tests: - successful uncompressed downloads with correct content-length - successful compressed downloads with correct content-length - unsuccessful uncompressed downloads with incorrect content-length - unsuccessful compressed downloads with incorrect content-length - successful downloads with incorrect conteng-length when transfer-encoding is set this makes sure that decompression + content length validate is happening in the correct order with remote_file and that we're ignoring the content-length in the presence of a transfer-encoding.
* Address regression with convert_boolean_return always set to trueAdam Edwards2014-03-291-1/+28
|
* CR feedback: move inheritance to class level, add tests for convert_boolean_trueAdam Edwards2014-03-291-1/+66
|
* CHEF-4553: Add spec tests and fix broken examplesAdam Edwards2014-03-291-3/+28
|
* Powershell guard functional testsAdam Edwards2014-03-291-0/+144
|
* Fix comment typoadamedx2014-03-291-1/+1
|
* Remove the unneeded running of "os" plugin.sersut2014-03-071-1/+1
|
* Fix the Ohai resource for Ohai 7.sersut2014-03-071-0/+65
| | | | | Conflicts: spec/unit/provider/ohai_spec.rb
* Fix chef spec infra to use OHAI correctly.sersut2014-03-073-5/+3
|
* Merge pull request #1254 from opscode/lcg/CHEF-5001lamont-granquist2014-03-051-0/+191
|\ | | | | CHEF-5001: tests for multiple rollbacks
| * CHEF-5001: tests for multiple rollbacksLamont Granquist2014-02-061-0/+191
| |
* | Correctly order setup of reporting state in registry specsDaniel DeLeo2014-02-191-5/+4
|/
* fix should_not raise_error(SpecificException)Lamont Granquist2014-01-291-1/+1
|
* s/mock\(/double(/gLamont Granquist2014-01-291-2/+2
|
* s/stub!/stub/gLamont Granquist2014-01-292-10/+10
| | | | fix deprecation warnings
* Merge remote-tracking branch 'goodmanio/CHEF-4639' into CHEF-4639-updatedsersut2014-01-171-1/+0
|\
| * RefactorAllen Goodman2013-11-181-14/+0
| |
| * If a resource is sensitive, it’s redacted from logs.Allen Goodman2013-11-151-0/+13
| |
* | fix platform_family check for fedoraLamont Granquist2014-01-151-2/+2
| |
* | Move shared examples invocation into windows-scoped blockadamedx2014-01-131-2/+2
| |
* | Reuse of examples via include_examples for more sensible rspec outputAdam Edwards2014-01-131-2/+2
| |
* | Windows domain group resource examplesAdam Edwards2014-01-131-15/+84
| |
* | CHEF-3012: Use SID instead of username for group membership checksadamedx2014-01-131-1/+12
| |
* | CHEF-4849: Use preseed-template-variables.seedBryan McLellan2013-12-201-1/+1
| | | | | | | | | | | | I believe this file was the intended preseed file to use for the response_file tests instead of the existing preseed-template.seed which uses a different variable.
* | CHEF-4849: Implement `#response_file_variables` in Package resourcePeter Fern2013-12-201-0/+17
| | | | | | | | | | | | | | | | Now that Chef properly supports a package `response_file` using `Chef::Resource::Template`, the Package resource should implement the `response_file_variables` method so that variables do not have to exist as node attributes (eg - for seeding DB passwords for configuration files generated by packages).
* | Fix specs on Solaris.sersut2013-11-191-3/+38
| |
* | Fix specs on FreeBSD.sersut2013-11-191-14/+14
| |
* | Turn off functional group resource tests on MacOSX 10.6 due to caching issue ↵sersut2013-11-191-1/+5
| | | | | | | | on Etc.getgrnam() on certain boxes.
* | Group spec fixed for CI.sersut2013-11-181-0/+3
| |
* | Better root checks and better naming for group account in functional group ↵sersut2013-11-141-1/+1
| | | | | | | | tests.
* | Support :excluded_members in windows group provider.sersut2013-11-121-6/+2
| |
* | Support :excluded members in gpasswd provider.sersut2013-11-111-0/+6
| |
* | Specs for CHEF-3297. TDD rules.sersut2013-11-111-117/+212
|/
* Update remote_file to expect nil return for 304 responsedanielsdeleo2013-10-231-0/+14
| | | | | | | | Recent changes to Chef's HTTP code have modified the behavior of the HTTP#streaming_request function; it now catches HTTP 304 responses internally and returns nil instead of raising an error. The cache control handling code in `remote_file` HTTP backend needs a corresponding update to appropriately branch for the not-modified case.