Skip to content

Commit d5c53d9

Browse files
committed
modulesync 9.0.0
1 parent 4233845 commit d5c53d9

File tree

4 files changed

+23
-32
lines changed

4 files changed

+23
-32
lines changed

.github/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
skip-changelog:
3+
- head-branch: ['^release-*', 'release']

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Managed by modulesync - DO NOT EDIT
33
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
44

5-
modulesync_config_version: '8.0.1'
5+
modulesync_config_version: '9.0.0'

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
55

66
group :test do
7-
gem 'voxpupuli-test', '~> 7.2', :require => false
7+
gem 'voxpupuli-test', '~> 8.0', :require => false
88
gem 'coveralls', :require => false
99
gem 'simplecov-console', :require => false
1010
gem 'puppet_metadata', '~> 4.0', :require => false

spec/classes/collectd_plugin_fscache_spec.rb

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,27 @@
22

33
require 'spec_helper'
44

5-
describe 'collectd::plugin::fscache', type: :class do
6-
test_on = {
7-
hardwaremodels: ['x86_64'],
8-
supported_os: [
9-
{
10-
'operatingsystem' => 'FreeBSD',
11-
'operatingsystemrelease' => %w[9 10]
12-
}
13-
]
14-
}
5+
describe 'collectd::plugin::fscache' do
6+
on_supported_os.each do |os, os_facts|
7+
context "on #{os}" do
8+
let(:facts) { os_facts }
159

16-
on_supported_os(test_on).each do |_os, facts|
17-
let(:facts) { facts }
18-
end
19-
20-
context ':ensure => present' do
21-
it 'Will create 10-fscache.conf' do
22-
is_expected.to contain_file('fscache.load').with(
23-
ensure: 'present',
24-
path: '/usr/local/etc/collectd/10-fscache.conf',
25-
content: %r{\#\ Generated by Puppet\n<LoadPlugin fscache>\n}
26-
)
27-
end
28-
end
10+
context ':ensure => present' do
11+
it 'Will create 10-fscache.conf' do
12+
is_expected.to contain_file('fscache.load').with(
13+
ensure: 'present',
14+
content: %r{\#\ Generated by Puppet\n<LoadPlugin fscache>\n}
15+
)
16+
end
17+
end
2918

30-
context ':ensure => absent' do
31-
let(:params) { { ensure: 'absent' } }
19+
context ':ensure => absent' do
20+
let(:params) { { ensure: 'absent' } }
3221

33-
it 'Will not create 10-fscache.conf' do
34-
is_expected.to contain_file('fscache.load').with(
35-
ensure: 'absent',
36-
path: '/usr/local/etc/collectd/10-fscache.conf'
37-
)
22+
it 'Will not create 10-fscache.conf' do
23+
is_expected.to contain_file('fscache.load').with_ensure('absent')
24+
end
25+
end
3826
end
3927
end
4028
end

0 commit comments

Comments
 (0)