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

Use one operating system for most RSpec tests #770

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

juniorsysadmin
Copy link
Member

The majority of Puppet classes and defined types in this module do not
have behaviour which changes depending on the operating system. Mock one
operating system for most tests, except for collectd_init_spec when
mocking multiple operating systems makes sense.

This attempts to address #633 , and should reduce test runtimes
considerably with little change in the confidence of tests actually
picking up problems.

The majority of Puppet classes and defined types in this module do not
have behaviour which changes depending on the operating system. Mock one
operating system for most tests, except for collectd_init_spec when
mocking multiple operating systems makes sense.

This attempts to address voxpupuli#633 , and should reduce test runtimes
considerably with little change in the confidence of tests actually
picking up problems.
Copy link
Member

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

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

I'm fine with the change. We don't use many facts, and they should all be covered with the collectd_init_spec.rb. And that is now running on all operating systems again and not on the limited set

@bastelfreak
Copy link
Member

I"m fine with this but we should wait with merging to get a bit feedback.

@bastelfreak bastelfreak merged commit f6c7d6a into voxpupuli:master Apr 5, 2018
@juniorsysadmin juniorsysadmin deleted the chop-matrix branch April 5, 2018 11:51
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