summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Merge pull request #1912 from jessehu/CHEF-ISSUE-1904Claire McQuin2014-10-021-1/+4
|\ | | | | retry on HTTP 50X Error when calling Chef REST API
| * read http_retry_count from chef config in the spec; add HTTP error code in ↵Hui Hu2014-09-041-2/+3
| | | | | | | | the log.
| * retry on HTTP 50X Error when calling Chef REST APIHui Hu2014-08-251-1/+3
| |
* | Test signal safely on windowsmcquin/Issue-1910Claire McQuin2014-10-011-0/+1
| |
* | Tidy up some comments, whitespace.Claire McQuin2014-10-011-0/+2
| |
* | Reconfigure signal trapping.Claire McQuin2014-10-011-13/+66
| | | | | | | | | | | | Exit gracefully when sent TERM Fix spec.
* | Disable unforked interval runs.Claire McQuin2014-10-013-26/+62
| | | | | | | | | | | | | | | | | | | | Clarify error message. Move fork and interval logic to application (specs pending). Clean code logic, fix specs. Allow unforked client runs with daemonize or splay
* | 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.
* | Unsupported block exception is now raised by configureBryan McLellan2014-09-301-5/+8
| | | | | | | | | | | | | | The fix for #1943 moved some code into a new configure method, which is also where we now raise if we're passed a block and a guard_interpreter as that is where we evaluate guard interpreters. This updates the unit test for that behavior.
* | Refactor resource guard interpreter specsBryan McLellan2014-09-301-15/+16
| | | | | | | | | | Refactor the unit tests to not test Chef::GuardInterpreter::ResourceGuardInterpreter directly rather than through Chef::Resource.
* | unit test for guard_interpreter creation during compilationBryan McLellan2014-09-301-0/+7
| | | | | | | | | | | | make sure we don't evaluate the guard_interpreter immediately, i.e. during compilation of the resource, as the conditional may be seen before the guard_interpreter attribute.
* | 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).
* | Improve tests for no conditional casesBryan McLellan2014-09-301-2/+4
| | | | | | | | | | The tests that ensured we didn't run a conditional when it wasn't specified had no expectations, so they would always have passed.
* | 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.
* | guard_interpreter requires a commandBryan McLellan2014-09-301-0/+9
| | | | | | | | | | | | | | | | Raises an exception if guard_interpreter is set (not :default) and we are not given a command (i.e. we are given a block). This is not supported, as we pass a command to an external interpreter. Related to #1943
* | Merge pull request #2136 from opscode/jdmundrawala/provider-specsJay Mundrawala2014-09-304-0/+6
|\ \ | | | | | | Jdmundrawala/provider specs
| * | dos2unix revision_specjdmundrawala/provider-specsJay Mundrawala2014-09-301-111/+111
| | |
| * | revision_spec passes on windowsJay Mundrawala2014-09-291-110/+111
| | |
| * | role_spec unit tests pass on windowsJay Mundrawala2014-09-291-0/+1
| | |
| * | dscl_spec tests pass on windowsJay Mundrawala2014-09-291-0/+3
| | |
| * | Deploy specs pass on windowsJay Mundrawala2014-09-291-0/+1
| | |
* | | Merge pull request #2135 from opscode/jdmundrawala/knife-bootstrap-specsJay Mundrawala2014-09-304-2/+7
|\ \ \ | | | | | | | | Make knife unit tests pass on windows
| * | | environment_from_file_spec passes on windowsjdmundrawala/knife-bootstrap-specsJay Mundrawala2014-09-291-0/+1
| | | |
| * | | dos2unix subcommand_loader_specJay Mundrawala2014-09-291-150/+150
| | | |
| * | | data_bag_from_file_spec passes on windowsJay Mundrawala2014-09-291-0/+1
| | | |
| * | | Knife subcommand_loader_spec passes on windowsJay Mundrawala2014-09-291-150/+150
| | | |
| * | | Make knife bootstrap unit test pass on windowsJay Mundrawala2014-09-291-1/+4
| |/ /
* | | Merge pull request #2134 from opscode/jdmundrawala/databag-spec-fixJay Mundrawala2014-09-301-0/+1
|\ \ \ | | | | | | | | Databag spec specifies not windows
| * | | Databag spec specifies not windowsjdmundrawala/databag-spec-fixJay Mundrawala2014-09-291-0/+1
| |/ /
* | | Merge pull request #2131 from opscode/jdmundrawala/git-windowsJay Mundrawala2014-09-301-3/+4
|\ \ \ | | | | | | | | Windows can have git as well
| * | | Fixed git provider specsjdmundrawala/git-windowsJay Mundrawala2014-09-291-3/+4
| |/ /
* | | Merge pull request #2130 from opscode/jdmundrawala/cookbook-loadingJay Mundrawala2014-09-303-1/+9
|\ \ \ | | | | | | | | Fixing cookbook loading for windows
| * | | Syntax checker uses helper method for relative pathjdmundrawala/cookbook-loadingJay Mundrawala2014-09-291-0/+3
| | | | | | | | | | | | | | | | Test pass on windows
| * | | cookbook_version_loader_spec passes on windowsJay Mundrawala2014-09-291-0/+3
| | | |
| * | | Cookbook loader specs specify not windowsJay Mundrawala2014-09-291-1/+3
| |/ /
* | | Merge pull request #2024 from opscode/jdmundrawala/windows_env_pathJay Mundrawala2014-09-302-34/+116
|\ \ \ | | | | | | | | Windows path fix
| * | | Use windows api to expand path. Cleaned up testsJay Mundrawala2014-09-112-46/+111
| | | |
| * | | Fix setting Path for WindowsAlex Slynko2014-09-101-0/+17
| | | |
* | | | Add the pending() guard to the 'when there's no reboot keys present' spec.Chris Doherty2014-09-291-2/+5
| | | |
* | | | 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
| |/ / |/| |
* | | Merge pull request #2116 from opscode/jdmundrawala/git-centosJay Mundrawala2014-09-291-2/+2
|\ \ \ | | | | | | | | Support checkout for git < 1.7.3
| * | | Support checkout for git < 1.7.3jdmundrawala/git-centosJay Mundrawala2014-09-251-2/+2
| | | |
* | | | Fixing `data bag edit` according to spec, no longer requires --encrypttball/encrypted-data-bag-uxtyler-ball2014-09-291-2/+10
| | | |
* | | | Fixing bad method definitiontyler-ball2014-09-293-8/+8
| | | |
* | | | Fixing :print_after so it correctly displays the edited data bag, even if it ↵tyler-ball2014-09-291-38/+52
| | | | | | | | | | | | | | | | became encrypted
* | | | Finishing UX spec - storing CL options in different config values so we can ↵tyler-ball2014-09-294-107/+59
| | | | | | | | | | | | | | | | correctly validate, updating bootstrap to use shared module