test httpoxy workaround
This commit is contained in:
parent
64c7b2c03c
commit
b17020dca8
1 changed files with 8 additions and 0 deletions
|
@ -510,6 +510,14 @@ describe 'nginx::resource::location' do
|
||||||
with_content(%r|fastcgi_param\s+CUSTOM_PARAM2\s+value2;|)
|
with_content(%r|fastcgi_param\s+CUSTOM_PARAM2\s+value2;|)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context "when fastcgi_param is {'HTTP_PROXY' => '""'}" do
|
||||||
|
let :params do default_params.merge({ :fastcgi_param => {'HTTP_PROXY' => '""'} }) end
|
||||||
|
it "should set fastcgi_param" do
|
||||||
|
should contain_concat__fragment("vhost1-500-" + Digest::MD5.hexdigest("#{params[:location]}")).
|
||||||
|
with_content(%r|fastcgi_param\s+HTTP_PROXY\s+"";|)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
context "when fastcgi_param is not set" do
|
context "when fastcgi_param is not set" do
|
||||||
let :params do default_params end
|
let :params do default_params end
|
||||||
|
|
Loading…
Reference in a new issue