From 31e14490a01f795b32c988f5ee8a2c56248f4cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20O=CC=88rnstedt?= Date: Tue, 24 Jun 2014 01:28:21 +0200 Subject: [PATCH] Added tests for pid http_tcp_nodelay http_tcp_nopush keepalive_timeout --- spec/classes/config_spec.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/spec/classes/config_spec.rb b/spec/classes/config_spec.rb index 257b61b81..822ff8e27 100644 --- a/spec/classes/config_spec.rb +++ b/spec/classes/config_spec.rb @@ -213,6 +213,30 @@ ' test2 test value 2;', ], }, + { + :title => 'should set pid', + :attr => 'pid', + :value => '/path/to/pid', + :match => 'pid /path/to/pid;', + }, + { + :title => 'should set tcp_nodelay', + :attr => 'http_tcp_nodelay', + :value => 'on', + :match => ' tcp_nodelay on;', + }, + { + :title => 'should set tcp_nopush', + :attr => 'http_tcp_nopush', + :value => 'on', + :match => ' tcp_nopush on;', + }, + { + :title => 'should set keepalive_timeout', + :attr => 'keepalive_timeout', + :value => '123', + :match => ' keepalive_timeout 123;', + }, ].each do |param| context "when #{param[:attr]} is #{param[:value]}" do let :params do { param[:attr].to_sym => param[:value] } end