| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
get first gem.bat in path rather than last
|
| | |
|
|\ \ |
|
| |\ \
| | | |
| | | | |
Change error description sections elements to be hashes.
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It is much easier for erlang to validate the json that chef-client sends up if exception_data.description.sections is of structure:
[{"str1" => "value1"}, ... ]
As opposed to current structure of:
[["str1", "value1"], ... ]
This change was achieved by updating error_description.rb. I also updated relevant test.
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since the existing tests mocked out Resource#cookbook_version it missed
the case where if Resource#cookbook_name is nil then cookbook_version would
also be nil.
Added guard logic around setting the cookbook_name, cookbook_version
in resource_reporter.rb to protect against the case where cookbook_name
is nil.
|
|/
|
|
|
|
|
|
|
| |
Fixes CHEF-4365: http://tickets.opscode.com/browse/CHEF-4365
A corrupt cache control file will cause a persistent failure of the
related remote_file resource. Since this data is just a cache of HTTP
headers, Chef can ignore corrupted cache control data, re-download the
source file, and then re-populate the cache with not-corrupt data.
|
|
|
|
| |
solaris
|
| |
|
|
|
|
|
|
|
|
| |
This reverts commit 5713a002062c762e40e4378be6d7763eb3dd61a2, reversing
changes made to 4079a344f2001c1927132e7ed6b63453f459609f.
Conflicts:
spec/unit/cookbook_loader_spec.rb
|
|
|
|
|
| |
This reverts commit 439980b12ed78eb5f61c52cf0d23d4a9205d1011, reversing
changes made to de4d8e66be3dee3ccd9ac027e6332e0eb37f532e.
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes CHEF-4341 http://tickets.opscode.com/browse/CHEF-4341
When manage_symlink_source is enabled, File providers update
current_resource with the security attributes of the source file.
Subsequent actions (e.g., running FileAccessControl) use the values set
on current_resource to determine if they need to modify the system, so
setting them incorrect leads to a file resource being (not) updated
incorrectly.
|
|\
| |
| | |
Lcg/diff encoding
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
- multiline is_binary? regex was broken
- multiline rspec tests were all broken
- Tempfile.new was a big no-op on several tests
- lots of support for handling different encodings and UTF-8 output
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
| |
- Increases test coverage for CHEF-4312 patch.
- Adds explicit coverage for managing symlink->[symlink ...]->file. It
was previously determined that `File.realpath` handles this case, but
this adds an explict test in case behavior is inconsistent across
platform/ruby version/etc.
|
|
|
|
|
|
|
| |
- Relates to CHEF-4312
- Updates unit tests to expect "normalized" filenames where method arguments
are now using File.realpath(path) instead of path; on *NIX these are the
same, on Windows, \ gets converted to /.
|
|
|
|
|
|
| |
- Don't load all knife subcommands. Fixes error running tests on 1.8
when you have 1.9-only plugins installed.
- Adjust spec file loading to use paths relative to spec/
|
|
|
|
|
|
|
|
|
|
| |
Fixes CHEF-4312 http://tickets.opscode.com/browse/CHEF-4312
Adds resource attribute `manage_symlink_source` to file resource and
descendents. When true, file resources will manage the source file
when a symlink exists at the destination path. When nil (default), the
source file is managed, but a warning is emitted. When false, symlinks
are not followed. In Chef 12, the default should be changed to false.
|
|
|
|
|
|
|
|
| |
- Prerequisite for CHEF-4312 fix.
- File access control defers to the provider to determine whether to use
link-following system calls or not (e.g., chmod vs. lchmod). File
provider and subclasses will use link-following calls (chmod), Link
provider uses calls that manage the symlink itself (e.g., lchmod).
|
|
|
|
| |
-File instead of -Command with powershell.exe
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- Inconsistent with other platforms because of etc/login.defs
- See CHEF-2205 http://tickets.opscode.com/browse/CHEF-2205
|
|
|
|
|
|
|
|
| |
On all other linux distros, `usermod`, when attempting to unlock a user
with no password set, refuses to unlock the user, but exits with status
0. On SLES 11 and 12, `usermod` exits with status 3, which then causes
mixlib shellout to raise an exception. Make the tests differentiate
expected behavior by platform.
|
|
|
|
|
| |
Only debian-based platforms appear to support usernames with single
quote characters, so skip this test on other platforms.
|
|
|
|
|
| |
- Fixes CHEF-4305 http://tickets.opscode.com/browse/CHEF-4305
- Fixes RHEL/CentOS 5 usermod bug uncovered by functional tests.
|
|
|
|
|
|
|
|
|
|
| |
Various versions of `useradd` return a variety of errors with exit code
12 when removing a user with no home directory and given options
indicating the home directory should be removed, regardless of the `-f`
flag. This is fixed in newer versions (such as the version on Ubuntu
13.04, where these tests were originally written), but probably won't be
fixed for older OSes. Accepting exit code 12 should fix the tests on
these platforms.
|
|\
| |
| | |
Lcg/cloexec lockfile
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
- Update useradd shared examples to rely on let block defined provider
object so custom method stubs can be added.
- Stub methods that manipulate shadow file on the solaris provider in
the shared examples.
- Remove unnecessary test setup from solaris provider specific tests.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Fixes CHEF-4204
- Useradd provider commands converted from single string to argv array.
This bypasses use of bin/sh command interpretation, so there is no
need to escape shell-significant characters (e.g., quotes, etc.).
- Un-pending-ize useradd functional tests for arguments to useradd with
single quote characters.
- Update useradd unit tests to expect command as argv splatted arrays.
- Extract useradd unit tests to a shared example group.
- deduplicate test code between solaris and useradd unit tests using
shared example group.
|
| |
| |
| |
| |
| |
| |
| | |
- Convert all run_command and popen4 calls to shell_out!
- Update useradd tests
- User::Solaris subclasses from Useradd, so update those tests, too.
- Functional tests pass unmodified
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Handle new 412 depsolver errors without any cookbook information.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|