File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 2357
2357
include apache::mod::auth_gssapi
2358
2358
}
2359
2359
2360
+ if ' index_options' in $directory or ' index_order_default' in $directory or ' index_style_sheet' in $directory {
2361
+ include apache::mod::autoindex
2362
+ }
2363
+
2360
2364
if $directory [' provider' ] and $directory [' provider' ] =~ ' location' and (' proxy_pass' in $directory or ' proxy_pass_match' in $directory ) {
2361
2365
include apache::mod::proxy_http
2362
2366
Original file line number Diff line number Diff line change 2258
2258
it { is_expected . to contain_class ( 'apache::mod::dav' ) }
2259
2259
it { is_expected . to contain_class ( 'apache::mod::dav_svn' ) }
2260
2260
end
2261
+
2262
+ context 'mod_autoindex is included when needed' do
2263
+ let :params do
2264
+ {
2265
+ 'docroot' => '/var/www/foo' ,
2266
+ 'directories' => [
2267
+ {
2268
+ 'index_options' => [ 'FancyIndexing' ] ,
2269
+ } ,
2270
+ ]
2271
+
2272
+ }
2273
+ end
2274
+
2275
+ it { is_expected . to compile }
2276
+ it { is_expected . to contain_class ( 'apache::mod::autoindex' ) }
2277
+ end
2261
2278
end
2262
2279
end
2263
2280
end
You can’t perform that action at this time.
0 commit comments