-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade test version #440
base: master
Are you sure you want to change the base?
Upgrade test version #440
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,16 @@ | |
require 'spec_helper_acceptance' | ||
|
||
describe 'jira postgresql' do | ||
it 'installs with defaults' do | ||
Check failure on line 6 in spec/acceptance/default_parameters_spec.rb
|
||
pp = <<-EOS | ||
$java_package = $facts['os']['family'] ? { | ||
'RedHat' => 'java-11-openjdk-headless', | ||
'Debian' => 'openjdk-11-jre-headless', | ||
'RedHat' => 'java-17-openjdk-headless', | ||
'Debian' => 'openjdk-17-jdk-headless', | ||
} | ||
|
||
$java_home = $facts['os']['family'] ? { | ||
'RedHat' => '/usr/lib/jvm/jre-11-openjdk', | ||
'Debian' => '/usr/lib/jvm/java-1.11.0-openjdk-amd64', | ||
'RedHat' => '/usr/lib/jvm/jre-17-openjdk', | ||
'Debian' => '/usr/lib/jvm/java-17-openjdk-amd64', | ||
} | ||
|
||
# The output of `systemctl status postgresql` is non ascii which | ||
|
@@ -40,17 +40,17 @@ | |
EOS | ||
pp_upgrade = <<-EOS | ||
$java_package = $facts['os']['family'] ? { | ||
'RedHat' => 'java-11-openjdk-headless', | ||
'Debian' => 'openjdk-11-jre-headless', | ||
'RedHat' => 'java-17-openjdk-headless', | ||
'Debian' => 'openjdk-17-jdk-headless', | ||
} | ||
|
||
$java_home = $facts['os']['family'] ? { | ||
'RedHat' => '/usr/lib/jvm/jre-11-openjdk', | ||
'Debian' => '/usr/lib/jvm/java-1.11.0-openjdk-amd64', | ||
'RedHat' => '/usr/lib/jvm/jre-17-openjdk', | ||
'Debian' => '/usr/lib/jvm/java-17-openjdk-amd64', | ||
} | ||
|
||
class { 'jira': | ||
version => '8.16.0', | ||
version => '9.12.18', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The version parameter in init.pp still defaults to 8. Should that be updated as well? Or do we want to keep the old version and test if the module can upgrade jira 8 to 9? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Jira 8.x, which has been eol a year now, does not support Java 17. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hopefully that will solve the Debian 12/Ubuntu 24.04 issues as well. |
||
java_package => $java_package, | ||
javahome => $java_home, | ||
script_check_java_manage => true, | ||
|
@@ -78,16 +78,16 @@ | |
end | ||
|
||
describe process('java') do | ||
it { is_expected.to be_running } | ||
Check failure on line 81 in spec/acceptance/default_parameters_spec.rb
|
||
end | ||
|
||
describe port(8080) do | ||
it { is_expected.to be_listening } | ||
Check failure on line 85 in spec/acceptance/default_parameters_spec.rb
|
||
end | ||
|
||
describe service('jira') do | ||
it { is_expected.to be_enabled } | ||
Check failure on line 89 in spec/acceptance/default_parameters_spec.rb
|
||
it { is_expected.to be_running } | ||
Check failure on line 90 in spec/acceptance/default_parameters_spec.rb
|
||
end | ||
|
||
describe user('jira') do | ||
|
@@ -96,11 +96,11 @@ | |
end | ||
|
||
describe command('tail -100 ~jira/log/atlassian-jira.log') do | ||
its(:stdout) { is_expected.to include('INFO') } | ||
Check failure on line 99 in spec/acceptance/default_parameters_spec.rb
|
||
end | ||
|
||
describe command('wget -q --tries=54 --retry-connrefused --read-timeout=10 -O- localhost:8080') do | ||
its(:stdout) { is_expected.to include('8.16.0') } | ||
its(:stdout) { is_expected.to include('9.12.18') } | ||
Check failure on line 103 in spec/acceptance/default_parameters_spec.rb
|
||
end | ||
|
||
describe 'shutdown' do | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The module doesn't really support java17 that well ..
https://github.com/voxpupuli/puppet-jira/blob/master/types/jvm_types.pp
puppet-jira/manifests/config.pp
Lines 29 to 33 in 7945c72