HomePhorge

Fixup tests to work on CentOS 5
b85cdc9d6216Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fixup tests to work on CentOS 5

Several tests were failing because the depended on being able to find a
user provider. On CentOS 5 this didn't work because the provider that
should be used (the useradd provider) is not considered suitable when it
gets run as a non-privaleged user because the useradd and related
commands are not executable.

The user_spec.rb and group_spec.rb test didn't need the tests that were
failing because they were testing functionality that is already tested
by the Type base class's own tests.

The ral_spec.rb needed more mocking of the things it was using in order
to abstract it from the system on which it is running.

The resources_spec.rb got a small cleanup and was fixed by reordering
the data loading in Puppet::Type::Resources so that it doesn't load
information about a user until it needs to.

Conflicts:

spec/unit/type/resources_spec.rb

Details

Provenance
Andrew Parker <andy@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU537488f1a7e4: Merge pull request #528 from stschulte/ticket/2.7.x/1076
Branches
Unknown
Tags
Unknown

Event Timeline

Andrew Parker <andy@puppetlabs.com> committed rPUb85cdc9d6216: Fixup tests to work on CentOS 5 (authored by Andrew Parker <andy@puppetlabs.com>).Apr 6 2012, 11:52 PM