Skip to content

Commit

Permalink
Merge pull request #1045 from voxpupuli/modulesync
Browse files Browse the repository at this point in the history
modulesync 9.0.0
  • Loading branch information
bastelfreak committed Jun 26, 2024
2 parents 4233845 + d5c53d9 commit a2a949b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 32 deletions.
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
skip-changelog:
- head-branch: ['^release-*', 'release']
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '8.0.1'
modulesync_config_version: '9.0.0'
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :test do
gem 'voxpupuli-test', '~> 7.2', :require => false
gem 'voxpupuli-test', '~> 8.0', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'puppet_metadata', '~> 4.0', :require => false
Expand Down
48 changes: 18 additions & 30 deletions spec/classes/collectd_plugin_fscache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,27 @@

require 'spec_helper'

describe 'collectd::plugin::fscache', type: :class do
test_on = {
hardwaremodels: ['x86_64'],
supported_os: [
{
'operatingsystem' => 'FreeBSD',
'operatingsystemrelease' => %w[9 10]
}
]
}
describe 'collectd::plugin::fscache' do
on_supported_os.each do |os, os_facts|
context "on #{os}" do
let(:facts) { os_facts }

on_supported_os(test_on).each do |_os, facts|
let(:facts) { facts }
end

context ':ensure => present' do
it 'Will create 10-fscache.conf' do
is_expected.to contain_file('fscache.load').with(
ensure: 'present',
path: '/usr/local/etc/collectd/10-fscache.conf',
content: %r{\#\ Generated by Puppet\n<LoadPlugin fscache>\n}
)
end
end
context ':ensure => present' do
it 'Will create 10-fscache.conf' do
is_expected.to contain_file('fscache.load').with(
ensure: 'present',
content: %r{\#\ Generated by Puppet\n<LoadPlugin fscache>\n}
)
end
end

context ':ensure => absent' do
let(:params) { { ensure: 'absent' } }
context ':ensure => absent' do
let(:params) { { ensure: 'absent' } }

it 'Will not create 10-fscache.conf' do
is_expected.to contain_file('fscache.load').with(
ensure: 'absent',
path: '/usr/local/etc/collectd/10-fscache.conf'
)
it 'Will not create 10-fscache.conf' do
is_expected.to contain_file('fscache.load').with_ensure('absent')
end
end
end
end
end

0 comments on commit a2a949b

Please sign in to comment.