Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(AIX) Fix some failing AIX specs #1408

Merged
merged 4 commits into from Jan 23, 2013
Merged

Conversation

nicklewis
Copy link
Contributor

This is the same as #1406, but against the aix branch, plus one more commit which wasn't necessary in master.

Fixes two issues with non-enableable service providers, a spec that fails outside of a git directory or without git available, and an exec test that assumed /bin/cd doesn't exist.

These specs use the default service provider, but in the case where that
provider doesn't support the enable property, they were failing when
testing various values for that property. Many of these went unnoticed
because they weren't actually making any assertions, but rather checking
that nothing failed, so now they do assert.
These tests were creating a resource and a launchd provider instance
from that resource, when the resource already has a (default) provider instance.
In most cases this was working fine, because the resource's provider
instance wasn't often being referred to. However, a couple of tests were
trying to set the enable property of the resource, which fails on systems without an
enableable provider. Now, we explicitly set the resource's provider to
launchd, as use its provider instance for all of our tests.
This test was setting path to /bin with the assumption that it didn't
contain cd, and therefore the only cd would be a shell built-in. On
system which *do* contain /bin/cd, this was failing. Now we just use a
bogus path so this will work everywhere.
This test was assuming, incorrectly, that it will always be run from
inside a git repo with git installed. Now we properly handle the case
where it's not, and skip the test.
@jeffweiss
Copy link
Contributor

Reviewing now...

@jeffweiss
Copy link
Contributor

code looks fine.. checking out to try on AIX.

@jeffweiss
Copy link
Contributor

tests pass locally, rsyncing to AIX to verify

@jeffweiss
Copy link
Contributor

Confirmed that these fix issues on AIX. 👍

jeffweiss pushed a commit that referenced this pull request Jan 23, 2013
(AIX) Fix some failing AIX specs
@jeffweiss jeffweiss merged commit 92e6418 into puppetlabs:aix Jan 23, 2013
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.

None yet

2 participants