File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 44source ENV [ 'GEM_SOURCE' ] || 'https://rubygems.org'
55
66group :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
119end
1210
1311group :development do
@@ -16,7 +14,7 @@ group :development do
1614end
1715
1816group :system_tests do
19- gem 'voxpupuli-acceptance' , '~> 3.0 ' , :require => false
17+ gem 'voxpupuli-acceptance' , '~> 3.5 ' , :require => false
2018end
2119
2220group :release do
Original file line number Diff line number Diff line change 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' ,
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments