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

Fix some specs on AIX #1406

Closed
wants to merge 3 commits into from
Closed

Conversation

nicklewis
Copy link
Contributor

These are purely spec fixes, and none of them are actually AIX-specific, though they do affect it.

There are two fixes for platforms where the default service provider doesn't support enable, and one for cases where the tests are running outside a git directory or without git available.

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 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.
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

1 participant