File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1202
1202
)
1203
1203
}
1204
1204
end
1205
+
1206
+ context 'modsec_anomaly_threshold' do
1207
+ let :params do
1208
+ {
1209
+ 'docroot' => '/rspec/docroot' ,
1210
+ 'modsec_inbound_anomaly_threshold' => 10_000 ,
1211
+ 'modsec_outbound_anomaly_threshold' => 10_000 ,
1212
+ }
1213
+ end
1214
+
1215
+ it { is_expected . to compile }
1216
+ it {
1217
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-security' ) . with (
1218
+ content : %r{
1219
+ ^\s +SecAction\ \\ \n
1220
+ \s +\" id:900110,\\ \n
1221
+ \s +phase:1,\\ \n
1222
+ \s +nolog,\\ \n
1223
+ \s +pass,\\ \n
1224
+ \s +t:none,\\ \n
1225
+ \s +setvar:tx.inbound_anomaly_score_threshold=10000,\ \\ \n
1226
+ \s +setvar:tx.outbound_anomaly_score_threshold=10000"$
1227
+ }x ,
1228
+ )
1229
+ }
1230
+ end
1231
+
1205
1232
context 'set only aliases' do
1206
1233
let :params do
1207
1234
{
You can’t perform that action at this time.
0 commit comments