3 describe 'apache::mod::negotiation', :type => :class do
4 describe "OS independent tests" do
9 :operatingsystem => 'Debian',
11 :lsbdistcodename => 'squeeze',
12 :operatingsystemrelease => '6',
13 :concat_basedir => '/dne',
15 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
20 context "default params" do
22 'class {"::apache": }'
24 it { should contain_class("apache") }
26 should contain_file('negotiation.conf').with( {
28 :content => 'LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
29 ForceLanguagePriority Prefer Fallback
35 context 'with force_language_priority parameter' do
37 'class {"::apache": default_mods => ["negotiation"]}'
40 { :force_language_priority => 'Prefer' }
43 should contain_file('negotiation.conf').with( {
45 :content => /^ForceLanguagePriority Prefer$/,
50 context 'with language_priority parameter' do
52 'class {"::apache": default_mods => ["negotiation"]}'
55 { :language_priority => [ 'en', 'es' ] }
58 should contain_file('negotiation.conf').with( {
60 :content => /^LanguagePriority en es$/,