default_params.merge(add_header:{'header3'=>{''=>'\'test value 3\' tv3'},'header2'=>{'test value 2'=>'tv2'},'header1'=>'test value 1'})
end
it'has correctly ordered entries in the config'do
is_expected.tocontain_concat__fragment("#{title}-header").with_content(%r{\s+add_header\s+"header1" "test value 1";\n\s+add_header\s+"header2" "test value 2" tv2;\n\s+add_header\s+"header3" 'test value 3' tv3;\n})
end
end
context'when add_header is set and ssl => true'do
let:paramsdo
default_params.merge(add_header:{'header3'=>{''=>'\'test value 3\' tv3'},'header2'=>{'test value 2'=>'tv2'},'header1'=>'test value 1'},
ssl:true,
ssl_key:'dummy.key',
ssl_cert:'dummy.cert')
end
it'has correctly ordered entries in the config'do
is_expected.tocontain_concat__fragment("#{title}-ssl-header").with_content(%r{\s+add_header\s+"header1" "test value 1";\n\s+add_header\s+"header2" "test value 2" tv2;\n\s+add_header\s+"header3" 'test value 3' tv3;\n})