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 2
2
# Managed by modulesync - DO NOT EDIT
3
3
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4
4
5
- modulesync_config_version : ' 9.4 .0'
5
+ modulesync_config_version : ' 9.7 .0'
Original file line number Diff line number Diff line change 4
4
source ENV [ 'GEM_SOURCE' ] || 'https://rubygems.org'
5
5
6
6
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
11
9
end
12
10
13
11
group :development do
@@ -16,7 +14,7 @@ group :development do
16
14
end
17
15
18
16
group :system_tests do
19
- gem 'voxpupuli-acceptance' , '~> 3.0 ' , :require => false
17
+ gem 'voxpupuli-acceptance' , '~> 3.5 ' , :require => false
20
18
end
21
19
22
20
group :release do
Original file line number Diff line number Diff line change 53
53
title : 'should set address' ,
54
54
attr : 'address' ,
55
55
value : '$remote_addr' ,
56
- match : 'geo $remote_addr $client_network {'
56
+ match : 'geo \ $remote_addr \ $client_network {'
57
57
} ,
58
58
{
59
59
title : 'should set ranges' ,
109
109
it { is_expected . to contain_file ( "/etc/nginx/conf.d/#{ title } -geo.conf" ) . with_mode ( '0644' ) }
110
110
111
111
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
113
115
Array ( param [ :notmatch ] ) . each do |item |
114
116
is_expected . to contain_file ( "/etc/nginx/conf.d/#{ title } -geo.conf" ) . without_content ( item )
115
117
end
Original file line number Diff line number Diff line change 136
136
it { is_expected . to contain_file ( "/etc/nginx/conf.d/#{ title } -map.conf" ) . with_mode ( '0644' ) }
137
137
138
138
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
140
142
Array ( param [ :notmatch ] ) . each do |item |
141
143
is_expected . to contain_file ( "/etc/nginx/conf.d/#{ title } -map.conf" ) . without_content ( item )
142
144
end
You can’t perform that action at this time.
0 commit comments