Skip to content

Commit

Permalink
add tests for JDK17
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHoenscheid committed Aug 23, 2024
1 parent 581cff7 commit d46a751
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/classes/confluence_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,23 @@
end
end

context 'jdk17 specific option' do
let(:params) do
{
version: '8.5.14',
javahome: '/opt/java',
jvm_type: 'openjdk-17'
}
end

it do
is_expected.to compile.with_all_deps
is_expected.to contain_file('/opt/confluence/atlassian-confluence-8.5.14/bin/setenv.sh').
with_content(%r{CATALINA_OPTS="-XX:\+ExplicitGCInvokesConcurrent \${CATALINA_OPTS}"}).
with_content(%r{CATALINA_OPTS="-Xlog:gc\*:file=\$LOGBASEABS/logs/gc-%t.log:tags,time,uptime,level:filecount=5,filesize=2M \${CATALINA_OPTS}"}) # fix this spec test
end
end

context 'manage_user set to true' do
let(:params) do
{
Expand Down

0 comments on commit d46a751

Please sign in to comment.