Skip to content

Commit bbc0143

Browse files
authored
Merge pull request #1630 from voxpupuli/modulesync
modulesync 9.7.0
2 parents ec56f09 + f68a3ef commit bbc0143

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.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: '9.4.0'
5+
modulesync_config_version: '9.7.0'

Gemfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
55

66
group :test do
7-
gem 'voxpupuli-test', '~> 9.0', :require => false
8-
gem 'coveralls', :require => false
9-
gem 'simplecov-console', :require => false
10-
gem 'puppet_metadata', '~> 4.0', :require => false
7+
gem 'voxpupuli-test', '~> 10.0', :require => false
8+
gem 'puppet_metadata', '~> 5.0', :require => false
119
end
1210

1311
group :development do
@@ -16,7 +14,7 @@ group :development do
1614
end
1715

1816
group :system_tests do
19-
gem 'voxpupuli-acceptance', '~> 3.0', :require => false
17+
gem 'voxpupuli-acceptance', '~> 3.5', :require => false
2018
end
2119

2220
group :release do

spec/defines/resource_geo_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
title: 'should set address',
5454
attr: 'address',
5555
value: '$remote_addr',
56-
match: 'geo $remote_addr $client_network {'
56+
match: 'geo \$remote_addr \$client_network {'
5757
},
5858
{
5959
title: 'should set ranges',
@@ -109,7 +109,9 @@
109109
it { is_expected.to contain_file("/etc/nginx/conf.d/#{title}-geo.conf").with_mode('0644') }
110110

111111
it param[:title] do
112-
verify_contents(catalogue, "/etc/nginx/conf.d/#{title}-geo.conf", Array(param[:match]))
112+
Array(param[:match]).each do |match_item|
113+
is_expected.to contain_file("/etc/nginx/conf.d/#{title}-geo.conf").with_content(Regexp.new(match_item))
114+
end
113115
Array(param[:notmatch]).each do |item|
114116
is_expected.to contain_file("/etc/nginx/conf.d/#{title}-geo.conf").without_content(item)
115117
end

spec/defines/resource_map_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@
136136
it { is_expected.to contain_file("/etc/nginx/conf.d/#{title}-map.conf").with_mode('0644') }
137137

138138
it param[:title] do
139-
verify_contents(catalogue, "/etc/nginx/conf.d/#{title}-map.conf", Array(param[:match]))
139+
Array(param[:match]).each do |match_item|
140+
is_expected.to contain_file("/etc/nginx/conf.d/#{title}-map.conf").with_content(Regexp.new(match_item))
141+
end
140142
Array(param[:notmatch]).each do |item|
141143
is_expected.to contain_file("/etc/nginx/conf.d/#{title}-map.conf").without_content(item)
142144
end

0 commit comments

Comments
 (0)