From d5c53d9d8bb0464b71a588d30e4e5499e5fd70d3 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 12 Jun 2024 11:13:33 +0200 Subject: [PATCH] modulesync 9.0.0 --- .github/labeler.yml | 3 ++ .msync.yml | 2 +- Gemfile | 2 +- spec/classes/collectd_plugin_fscache_spec.rb | 48 ++++++++------------ 4 files changed, 23 insertions(+), 32 deletions(-) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..7899de84 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,3 @@ +--- +skip-changelog: + - head-branch: ['^release-*', 'release'] diff --git a/.msync.yml b/.msync.yml index 876cb3b0..36071685 100644 --- a/.msync.yml +++ b/.msync.yml @@ -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' diff --git a/Gemfile b/Gemfile index ec7b4cd3..27cdc0de 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/spec/classes/collectd_plugin_fscache_spec.rb b/spec/classes/collectd_plugin_fscache_spec.rb index 377180f1..334b12b3 100644 --- a/spec/classes/collectd_plugin_fscache_spec.rb +++ b/spec/classes/collectd_plugin_fscache_spec.rb @@ -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\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\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