File tree 4 files changed +28
-0
lines changed
4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 76
76
$server_signature = ' On' ,
77
77
$trace_enable = ' On' ,
78
78
$allow_encoded_slashes = undef ,
79
+ $file_e_tag = undef ,
79
80
$package_ensure = ' installed' ,
80
81
$use_optional_includes = $::apache::params::use_optional_includes ,
81
82
$use_systemd = $::apache::params::use_systemd ,
Original file line number Diff line number Diff line change @@ -483,6 +483,22 @@ class { 'apache':
483
483
end
484
484
end
485
485
486
+ describe 'file_e_tag' do
487
+ it 'applys cleanly' do
488
+ pp = <<-EOS
489
+ class { 'apache':
490
+ file_e_tag => 'None',
491
+ }
492
+ EOS
493
+ apply_manifest ( pp , :catch_failures => true )
494
+ end
495
+
496
+ describe file ( $conf_file) do
497
+ it { is_expected . to be_file }
498
+ it { is_expected . to contain 'FileETag None' }
499
+ end
500
+ end
501
+
486
502
describe 'package_ensure' do
487
503
it 'applys cleanly' do
488
504
pp = <<-EOS
Original file line number Diff line number Diff line change 110
110
it { is_expected . to contain_file ( "/etc/apache2/apache2.conf" ) . with_content %r{^AllowEncodedSlashes nodecode$} }
111
111
end
112
112
113
+ context "when specifying fileETag behaviour" do
114
+ let :params do
115
+ { :file_e_tag => 'None' }
116
+ end
117
+
118
+ it { is_expected . to contain_file ( "/etc/apache2/apache2.conf" ) . with_content %r{^FileETag None$} }
119
+ end
120
+
113
121
context "when specifying default character set" do
114
122
let :params do
115
123
{ :default_charset => 'none' }
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ EnableSendfile <%= @sendfile %>
61
61
<%- if @allow_encoded_slashes -%>
62
62
AllowEncodedSlashes <%= @allow_encoded_slashes %>
63
63
<%- end -%>
64
+ <%- if @file_e_tag -%>
65
+ FileETag <%= @file_e_tag %>
66
+ <%- end -%>
64
67
65
68
#Listen 80
66
69
You can’t perform that action at this time.
0 commit comments