Skip to content

Commit

Permalink
add unit test for $solr_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Apr 3, 2024
1 parent 238ea88 commit 5e9366f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/classes/solr_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,17 @@
it { is_expected.not_to contain_file('/var/solr/solr.in.sh').with_content(%r{-Dsolr.allowPaths=}) }
it { is_expected.not_to contain_file('/var/solr/solr.in.sh').with_content(%r{/tmp/CustomAllowPath}) }
end

context 'solr class when solr_opts is not empty' do
let(:params) do
{
solr_opts: ['-Duser.language=de'],
version: '9.4.1',
}
end

it { is_expected.to contain_file('/var/solr/solr.in.sh').with_content(%r{-Duser.language=de}) }
end
end
end
end
Expand Down

0 comments on commit 5e9366f

Please sign in to comment.