Skip to content

(#13655) Fixup tests to work on CentOS 5#637

Merged
cprice404 merged 1 commit intopuppetlabs:masterfrom
zaphod42:bug/master/13655-test-failures-on-centos5
Apr 6, 2012
Merged

(#13655) Fixup tests to work on CentOS 5#637
cprice404 merged 1 commit intopuppetlabs:masterfrom
zaphod42:bug/master/13655-test-failures-on-centos5

Conversation

@zaphod42
Copy link
Contributor

@zaphod42 zaphod42 commented Apr 6, 2012

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.

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.
@cprice404
Copy link

This looks very straightforward, is almost entirely test cleanup / improvements. Running specs and acceptance locally now.

cprice404 added a commit that referenced this pull request Apr 6, 2012
…on-centos5

(#13655) Fixup tests to work on CentOS 5
@cprice404 cprice404 merged commit d464652 into puppetlabs:master Apr 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments