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

Handle nil autorequire results #22

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

seanmil
Copy link

@seanmil seanmil commented Jan 11, 2022

When encountering results containing nil from an autorequire-family
call, Puppet will skip over them without error but rspec-puppet
results in an error. This aligns rspec-puppet with Puppet's
behavior.

Also, rename the autorelationships spec test so that it runs
properly as part of a 'rake spec' invocation.

When encountering results containing nil from an autorequire-family
call, Puppet will skip over them without error but rspec-puppet
results in an error. This aligns rspec-puppet with Puppet's
behavior.

Also, rename the autorelationships spec test so that it runs
properly as part of a 'rake spec' invocation.
Copy link

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it was my bad when I wrote this in a PR.

Use notify, an OS-neutral resource type, instead of File for
the testing.
@seanmil
Copy link
Author

seanmil commented Jan 11, 2022

Looks like it was my bad when I wrote this in a PR.

I just pushed an update I expect will fix the test failures on Windows. Thanks!

Copy link

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! While I don't have access on this repo, it looks good to me.

Copy link

@michaeltlombardi michaeltlombardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement to the code and the tests both! LGTM!

@michaeltlombardi michaeltlombardi merged commit e54b31e into puppetlabs:master Jan 24, 2022
@chelnak chelnak added the bug label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants