summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into feat/5556Jose Asuncion2017-07-061-1/+33
|\ | | | | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
| * [MSYS-590] Make mount idempotent on Aix (#6213)NAshwini2017-07-051-1/+33
| | | | | | | | | | * Make mount idempotent on Aix Signed-off-by: NAshwini <ashwini.nehate@msystechnologies.com>
* | update to conform to chefstyleJose Asuncion2017-07-061-1/+1
| |
* | raise error if chef_server_url is not validJose Asuncion2017-07-041-0/+12
|/ | | | Signed-off-by: Jose Asuncion <jeunito@gmail.com>
* [ci skip] a typoLamont Granquist2017-06-301-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix execute resource to use shell_out_with_systems_localeLamont Granquist2017-06-304-24/+42
| | | | | | | | | | | | | | | | | | This may be a breaking change for some users coming from 13.0/13.1 but this was the intended way that this API would function in Chef 13.0. With this change we stop inserting environment variables into execute resources. That means that whatever users type into the execute resource should much more exactly agree with the response on the command line, which will close a shedload of bugs and is how Chef 13.0 was intended to operate. We no longer globally mangle the PATH or the LANG/LC_ locale environment variables. The way that it worked in Chef 13.0/13.1 resulted in the internal chef embedded/bin directory being prepended to the PATH environment variable in the `execute` resource, which was never intended. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Properly send run_list_expanded event in policy node casetc/fix-expanded-run-list-reporting-for-policyfilesTyler Cloke2017-06-201-0/+50
| | | | Signed-off-by: Tyler Cloke <tylercloke@gmail.com>
* Merge pull request #6228 from chef/lcg/bump-rubocopLamont Granquist2017-06-208-13/+13
|\ | | | | bump rubocop to 0.49.1
| * fixes for rubocop 0.49.1 engineLamont Granquist2017-06-208-13/+13
| | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* | Fixed the specs and review commentsNimishaS2017-06-194-21/+27
| | | | | | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* | Fixing build failures of Windows Server 2016nimisha2017-06-194-4/+27
|/ | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Deprecate property namespace magicLamont Granquist2017-06-083-34/+29
| | | | | | | This forces everyone to starting using new_resource.property_name instead of just property_name. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Marked :end task volatileThom May2017-06-021-2/+1
| | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Merge pull request #6142 from ↵Thom May2017-06-021-0/+22
|\ | | | | | | | | MsysTechnologiesllc/nim/error_handling_for_proxy_issue [MSYS-563] Modified error message to explain connectivity issue due to Proxy
| * Checking for proxy error separatelynimisha2017-06-021-0/+22
| | | | | | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* | Removed status check where not requirednimisha2017-06-021-10/+4
| | | | | | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* | Always run reconfigure between runs, and when HUP'dBryan McLellan2017-05-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | We can't reconfigure in a trap context because we might open files or another activity that could cause a deadlock. Ruby 2.0+ now prevents this by raising a ThreadError. This now runs reconfigure after every daemonized run, but still takes a HUP in case you need to reconfigure while sleeping. Fixes #4578 Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | Feed the rubocop.Noah Kantrowitz2017-05-301-29/+29
| | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | Merge branch 'master' into version-checkNoah Kantrowitz2017-05-301-11/+29
|\ \ | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * \ Merge pull request #6184 from coderanger/no-listenNoah Kantrowitz2017-05-261-11/+29
| |\ \ | | | | | | | | Fix up tests for the no-listen swapover.
| | * | Fix up tests for the no-listen swapover.Noah Kantrowitz2017-05-261-11/+29
| | | | | | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | | | Merge branch 'master' into version-checkNoah Kantrowitz2017-05-255-67/+31
|\ \ \ \ | |/ / / | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * | | mark windows task :end test as volatiletm/volatile_tasksThom May2017-05-251-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Thom May <thom@chef.io>
| * | | provider doesn't existing any moreLamont Granquist2017-05-251-49/+0
| | | | | | | | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | | convert breakpoint resource to a custom resourceLamont Granquist2017-05-253-34/+47
| |/ / | | | | | | | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
| * | Remove the extra commachoco_fixTim Smith2017-05-231-1/+1
| | | | | | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * | Only run the Chocolatey tests if Chocolatey is installedTim Smith2017-05-231-1/+1
| | | | | | | | | | | | | | | | | | This is a bit of a workaround for now. We need to get Chocolatey back on the windows jenkins builders so we can get green tests. This gets us green for the 13.1 release though. Signed-off-by: Tim Smith <tsmith@chef.io>
* | | Typo and a test for that typo.Noah Kantrowitz2017-05-251-0/+2
| | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | | The case syntax is nice but not worth a core monkeypatch. ::sad trombone::Noah Kantrowitz2017-05-251-42/+0
| | | | | | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | | First pass on a VersionString class.Noah Kantrowitz2017-05-231-0/+119
|/ / | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | Merge pull request #6154 from chef/tm/gem_pathThom May2017-05-161-11/+14
|\ \ | | | | | | Ensure that we check the embedded gem binary last
| * | Ensure that we check the embedded gem binary lasttm/gem_pathThom May2017-05-161-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we injected our expected paths in to ENV['PATH'] but we stopped doing that in Chef 13; for gem_package, we need to ensure that if all else fails we'll use the Omnibus provided gem binary, but we should never pick that if we can find a different one. Closes: #6103 Signed-off-by: Thom May <thom@chef.io>
* | | Prefer Systemd with sysvinit script over Upstart for service providerGrant Ridder2017-05-151-10/+10
|/ / | | | | | | | | | | On newer Debian based systems that use systemd to have a package install a SysV init and Upstart script. Systemd can use systemd service files or SysV init scripts. However, on the Chef serivce provider side, this is not reflected. So in this case, Upstart will be prefered even if Upstart itself is not installed on the system. Signed-off-by: Grant Ridder <shortdudey123@gmail.com>
* | Run choco tests just on 2012r2 for nowtm/disable_choco_harderThom May2017-05-151-2/+1
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | Completely ignore the chocolatey teststm/disable_choco_testsThom May2017-05-121-0/+1
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | mark test as pending with a useful messageThom May2017-05-121-2/+2
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | Added choco_include? filternimisha2017-05-114-10/+12
| | | | | | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* | Fixing Build Failuresnimisha2017-05-111-0/+1
|/ | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Merge pull request #6105 from Stromweld/patch-1Matt Wrock2017-05-101-2/+2
|\ | | | | Updated to fix day validation with monthly frequency
| * fixed test with @NimishaS suggestion. Signed-off-by: Corey Hemminger ↵Corey Hemminger2017-05-031-6/+2
| | | | | | | | | | | | corey.hemminger@nativex.com Signed-off-by: Corey Hemminger <corey.hemminger@nativex.com>
| * updated testsCorey Hemminger2017-05-021-3/+7
| | | | | | Signed-off-by: Corey Hemminger corey.hemminger@nativex.com
* | Fixing broken functional test in windows_task resourcenimisha2017-05-101-1/+0
| | | | | | | | Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* | Adding functional specs for windows_task resource (#6067)Nimisha Sharad2017-05-081-0/+459
|/ | | | | | * Added functional specs for windows_task resource Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
* Merge pull request #6055 from coderanger/package-optionsThom May2017-04-2824-76/+76
|\ | | | | Clean up more stubbed properties in tests
| * Remove a whole bunch more stubbed property stuff.Noah Kantrowitz2017-04-1121-67/+67
| | | | | | | | Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
| * Clean up other uses of the allow(@new_resource).to receive(:options) pattern.Noah Kantrowitz2017-04-114-9/+9
| | | | | | | | | | | | None of these tests are failing as a result but good for the future. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | Merge pull request #6097 from chef/tm/aix_manage_homeThom May2017-04-281-0/+97
|\ \ | | | | | | Fix manage_home on AIX
| * | Fix manage_home on AIXtm/aix_manage_homeThom May2017-04-271-0/+97
| | | | | | | | | | | | | | | | | | Fixes: #6092 Signed-off-by: Thom May <thom@chef.io>
* | | lazily load cookbook_files and templatestm/even_lazierThom May2017-04-252-5/+5
| | | | | | | | | | | | | | | | | | Fixes: #6051 Signed-off-by: Thom May <thom@chef.io>
* | | Add tests for lazy load of cookbook filesThom May2017-04-251-0/+33
| | | | | | | | | | | | Signed-off-by: Thom May <thom@may.lt>