HomePhorge

(#8411) Fix change group for POSIX file provider
1f25c2071643Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#8411) Fix change group for POSIX file provider

During the file type refactor, the POSIX file provider was
accidentally changed to invoke the File.chgrp and File.lchgrp
methods. These methods don't actually exist and this was causing
acceptance test failures.

This commit changes the POSIX file provider to invoke the File.chown
and File.lchown methods when changing the group. Updated the spec
tests, and also added integration tests, which simply change the owner
and group to the current values. While not the best test, it will work
in non-root contexts and will ensure this doesn't happen again.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU6e8ce12d3127: Merge branch 'maint/2.7.x/file-provider-build-break' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU1f25c2071643: (#8411) Fix change group for POSIX file provider (authored by Josh Cooper <josh@puppetlabs.com>).Oct 3 2011, 7:07 PM