Skip to content

Commit 4424b4a

Browse files
committed
Rename duplicate control as 'nginx-17'
1 parent 28b0709 commit 4424b4a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

controls/nginx_spec.rb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -180,24 +180,6 @@
180180
end
181181
end
182182

183-
control 'nginx-07' do
184-
impact 1.0
185-
title 'Control timeouts to improve performance'
186-
desc 'Control timeouts to improve server performance and cut clients.'
187-
describe parse_config_file(nginx_conf, options) do
188-
its('keepalive_timeout') { should eq KEEPALIVE_TIMEOUT }
189-
end
190-
describe parse_config_file(nginx_hardening, options) do
191-
its('client_body_timeout') { should eq CLIENT_BODY_TIMEOUT }
192-
end
193-
describe parse_config_file(nginx_hardening, options) do
194-
its('client_header_timeout') { should eq CLIENT_HEADER_TIMEOUT }
195-
end
196-
describe parse_config_file(nginx_hardening, options) do
197-
its('send_timeout') { should eq SEND_TIMEOUT }
198-
end
199-
end
200-
201183
control 'nginx-07' do
202184
impact 1.0
203185
title 'Control simultaneous connections'
@@ -298,3 +280,21 @@
298280
its('content') { should match(/^\s*set_cookie_flag * HttpOnly secure;$/) }
299281
end
300282
end
283+
284+
control 'nginx-17' do
285+
impact 1.0
286+
title 'Control timeouts to improve performance'
287+
desc 'Control timeouts to improve server performance and cut clients.'
288+
describe parse_config_file(nginx_conf, options) do
289+
its('keepalive_timeout') { should eq KEEPALIVE_TIMEOUT }
290+
end
291+
describe parse_config_file(nginx_hardening, options) do
292+
its('client_body_timeout') { should eq CLIENT_BODY_TIMEOUT }
293+
end
294+
describe parse_config_file(nginx_hardening, options) do
295+
its('client_header_timeout') { should eq CLIENT_HEADER_TIMEOUT }
296+
end
297+
describe parse_config_file(nginx_hardening, options) do
298+
its('send_timeout') { should eq SEND_TIMEOUT }
299+
end
300+
end

0 commit comments

Comments
 (0)