summaryrefslogtreecommitdiff
path: root/spec/functional
Commit message (Collapse)AuthorAgeFilesLines
* Enable Windows services to run as a different user (CHEF-4921). This adds ↵cdoherty-enhance-win-serviceChris Doherty2014-12-192-57/+100
| | | | | | | | :run_as_user and :run_as_password attributes to the windows_service resource. If a logon user is specified, the resource will (on every run) grant the logon-as-service privilege to that user, using secedit.exe.
* Merge pull request #2661 from opscode/btm/appveyor11.18.0.rBryan McLellan2014-12-171-1/+1
|\ | | | | Combination of all current PRs against master to get appveyor passing. Closes #2655, #2653, #2644, #2670.
| * Disable broken registry_spec testsbtm/appveyorJay Mundrawala2014-12-161-1/+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
* | First pass at fixing broken notificationstyler-ball2014-12-161-0/+169
|/ | | | | | Fixing some code I changed unecessarily Removing TODOs which are not necessary
* As https://github.com/opscode/chef/issues/2580 summarizes, Link resource ↵sersut/revert-1901Serdar Sutay2014-12-111-4/+4
| | | | | | need to support relative paths in its 'to' attribute since one can create a symlink pointing to a relative location. This is useful if the directory that symlink resides in moves to a different place (e.g. mounting a disk on a separate location). This commit preserves relative paths inside the "encode_path" method used by the link operations and expands relative paths in similar fashion when being used by file operations.
* Revert "Merge pull request #1901 from opscode/dont-prepend-to-relative-paths"Serdar Sutay2014-12-111-16/+16
| | | | | | | | | | This reverts commit 1241ea6f9866d0e61d11129bb32e5fc96cd2bac0, reversing changes made to 34d956c6b96087e6ca4bfbc9080037ded481709d. Conflicts: spec/functional/resource/file_spec.rb spec/functional/resource/link_spec.rb spec/unit/provider/link_spec.rb
* Execute and Script Resource improvementsLamont Granquist2014-12-082-64/+157
| | | | | | | | | | | - 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
* typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-081-1/+1
|
* Remove remaining should syntax.Claire McQuin2014-11-031-4/+4
|
* Clean up for Windows spec deprecation warnings.Claire McQuin2014-11-031-1/+1
|
* Change pending to skip.Claire McQuin2014-11-031-1/+1
|
* Fix some Windows specs.Claire McQuin2014-10-303-8/+8
|
* Merge branch 'master' into mcquin/rspec-3Claire McQuin2014-10-302-19/+19
|\ | | | | | | | | | | Conflicts: spec/functional/dsl/reboot_pending_spec.rb spec/functional/event_loggers/windows_eventlog_spec.rb
| * Fix the after blocks in reboot_pending specs.sersut/win-res-lookup-fixSerdar Sutay2014-10-291-4/+4
| |
| * Fix the logic that checks for existing reboot pending in reboot pending tests.Serdar Sutay2014-10-281-15/+15
| |
| * Make sure the event log related capability is turned off on Windows 2003 ↵Serdar Sutay2014-10-281-5/+5
| | | | | | | | boxes since it's not supported.
* | Fix failures from pendingClaire McQuin2014-10-301-4/+4
| |
* | Update to RSpec 3.Claire McQuin2014-10-2942-772/+770
|/
* @hourly not supported in aix cronskaustubh-d2014-10-281-2/+2
|
* fix bff spec by setting os attribute on node so that approriate provider is ↵kaustubh-d2014-10-281-0/+1
| | | | found.
* Set guard_interpreter using default_guard_interpreterAdam Edwards2014-10-231-19/+24
|
* powershell_script and batch resource guard_interpeter default to parent resourceAdam Edwards2014-10-232-11/+11
|
* Use windows evt log by default on windowsJay Mundrawala2014-10-221-3/+7
|
* Guard windows specific includes in specJay Mundrawala2014-10-221-2/+4
|
* Copy-pasta errorJay Mundrawala2014-10-221-1/+1
|
* Added spec for windows event loggerJay Mundrawala2014-10-221-0/+76
|
* Merge pull request #2249 from opscode/jdmundrawala/delete-envJay Mundrawala2014-10-211-0/+9
|\ | | | | Ensure delete ENV[var] from current process
| * spec to ensure deleting ENV[var] from current process worksjdmundrawala/delete-envJay Mundrawala2014-10-211-0/+9
| |
* | Merge pull request #2028 from ClogenyTechnologies/kd/aix-serviceSerdar Sutay2014-10-214-0/+392
|\ \ | |/ |/| aix service provider
| * fixed functional testskaustubh-d2014-09-234-92/+132
| |
| * fix copyrightkaustubh2014-09-221-1/+1
| |
| * mark test aix only, and correct copyrightkaustubh2014-09-221-2/+2
| |
| * functional specs for aix service providerkaustubh-d2014-09-194-0/+352
| |
* | Missed one spec in rpm_spec.rb.sersut/chef-rc-fixes-2Serdar Sutay2014-10-201-2/+2
| |
* | Refer to rpm assets with the full path in specs.Serdar Sutay2014-10-201-2/+3
| |
* | Fix cron specs on Solaris.Serdar Sutay2014-10-201-1/+7
| |
* | Enable guard_interpreters for the execute resource and set the default ↵Serdar Sutay2014-10-161-0/+113
| | | | | | | | | | | | interpreter for the execute resource to be :execute. This ensures that attributes of the resource like :environment & :cwd can be inherited by the guard when guard is specified as a string.
* | file_spec: chdir into the temp directory so we don't leave test files in the ↵cdoherty-eliminate-spec-remnantsChris Doherty2014-10-151-0/+2
| | | | | | | | source root.
* | Remove unnecessary contexts in DSC functional specsAdam Edwards2014-10-141-44/+36
| |
* | DSC parameters should be passed even when there is no config data fileAdam Edwards2014-10-141-4/+57
| |
* | Deal with nil system path in env_specjdmundrawala/env-path-spec-fixJay Mundrawala2014-10-111-4/+1
| |
* | restore ENV['PATH'] in env_spec after test is completeJay Mundrawala2014-10-101-1/+3
| |
* | Trying to eradicate all traces of the JSON gem from Cheftyler-ball2014-10-073-6/+6
| |
* | Cleanup commented out codebtm/group_functional_testsBryan McLellan2014-09-291-2/+0
| |
* | Match group func tests to specificationBryan McLellan2014-09-291-4/+9
| | | | | | | | | | | | | | When a group does not exist, the group resource should raise an exception on action modify, but not on action_manage. Also update the `not_to raise_error(SpecificError)` deprecated syntax.
* | Update guard functional tests for refactoringbtm/guard-orderBryan McLellan2014-10-011-1/+2
| | | | | | | | | | We now raise a little late when given a guard interpreter and a block, mostly being lazy. This updates the functional test to check the correct code path.
* | Re-remove tests that were removed in 6591d4b2Bryan McLellan2014-10-011-20/+0
| | | | | | | | | | These tests are no longer correct since we don't allow passing a block with a guard interpreter.
* | test guard_interpreter orderBryan McLellan2014-09-301-0/+13
| | | | | | | | | | adds a functional test to ensure guard_interpreter can be set after a conditional.
* | nest powershell guard functional testsBryan McLellan2014-09-301-155/+176
| | | | | | | | | | | | reorder the powershell functional tests to provide a framework for testing with guard_interpreter set and not set (allowing testing the "default", i.e. values on resource initialization).
* | update functional tests for guard_interpreterBryan McLellan2014-09-301-20/+6
| | | | | | | | | | | | | | we now raise an error when passed a block and a guard_interpreter is specified other than :default. When other interpreters become the "default" (which actually means use the default shell for that platform) we will need to consider those as well, i.e. #1495.