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

Support Puppet 6 #988

Merged
merged 2 commits into from
Oct 2, 2018
Merged

Support Puppet 6 #988

merged 2 commits into from
Oct 2, 2018

Conversation

treydock
Copy link
Collaborator

Pull Request Checklist

Description

Add support for Puppet 6.

Use filter function for check_notify because unit tests would fail as it seems delete_undef_values was returning [nil,nil,nil,nil] and not actually filtering Undef.

Related Issue

Fixes #983

Motivation and Context

Add support for Puppet 6. Updated logic in acceptance tests setup to be simpler and more like sensu2 so that easy to use different Puppet collection in tests based on environment variables.

.travis.yml Outdated
env: BEAKER_set="centos-6" BEAKER_PUPPET_COLLECTION=puppet5
bundler_args:
script: bundle exec rake beaker
- rvm: 2.4.4
Copy link
Collaborator

Choose a reason for hiding this comment

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

puppet6 should use 2.5.1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That version of RVM only affects beaker outside the container environment so no bearing on Puppet Ruby version since Ruby is installed into container using packages. Still want it to be 2.5.1? I kept consistent with other beaker tests since only interacts with beaker.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, because we want the testing environment to match the version we actually use. This is useful so any other ruby tooling used around your Puppet setup can be on the same version.

@treydock
Copy link
Collaborator Author

treydock commented Oct 1, 2018

Updated to use ruby 2.5.1 for all Puppet 6 related tests.

@ghoneycutt ghoneycutt mentioned this pull request Oct 1, 2018
@ghoneycutt ghoneycutt merged commit bbf846d into sensu:master Oct 2, 2018
@ghoneycutt
Copy link
Collaborator

released in v2.55.0

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.

Support Puppet 6
2 participants