Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "puppet-jira",
"version": "6.2.2-rc0",
Expand Down Expand Up @@ -70,7 +70,8 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"11"
"11",
"12"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/default_parameters_jira_10_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
} elsif $facts['os']['family'] == 'Debian' {
$postgresql_version = $facts['os']['release']['major'] ? {
'11' => '13',
default => '14',
'12' => '15',
default => 'FIXME',
}

$java_package = 'openjdk-17-jre'
Expand Down Expand Up @@ -127,7 +128,7 @@

context 'jira 10' do
describe 'jira 10 postgresql' do
it 'installs jira 10 with defaults' do

Check failure on line 131 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql installs jira 10 with defaults Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-openvox8.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_202336734.b7l2pS.pp Last 10 lines of output were: Warning: /Stage[main]/Jira::Config/File[/opt/jira/atlassian-jira-software-10.3.2-standalone/bin/setenv.sh]: Skipping because of failed dependencies Warning: /Stage[main]/Jira::Config/File[/home/jira/dbconfig.xml]: Skipping because of failed dependencies Warning: /Stage[main]/Jira::Config/File[/opt/jira/atlassian-jira-software-10.3.2-standalone/conf/server.xml]: Skipping because of failed dependencies Warning: /Stage[main]/Jira::Config/File[/opt/jira/atlassian-jira-software-10.3.2-standalone/conf/context.xml]: Skipping because of failed dependencies Warning: /Stage[main]/Jira::Config/File[/home/jira/jira-config.properties]: Skipping because of failed dependencies Warning: /Stage[main]/Jira::Service/Systemd::Unit_file[jira.service]/File[/etc/systemd/system/jira.service]: Skipping because of failed dependencies Warning: /Stage[main]/Jira::Service/Systemd::Unit_file[jira.service]/Systemd::Daemon_reload[jira.service]/Exec[systemd-jira.service-systemctl-daemon-reload]: Skipping because of failed dependencies Warning: /Stage[main]/Jira::Service/Service[jira]: Skipping because of failed dependencies Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml �[mNotice: Applied catalog in 2.16 seconds
# jira just takes *ages* to start up :-(
wget_cmd = 'wget -q --tries=24 --retry-connrefused --read-timeout=10 localhost:8080'
apply_manifest(pp, catch_failures: true)
Expand All @@ -147,26 +148,26 @@
end

describe process('java') do
it { is_expected.to be_running }

Check failure on line 151 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql Process "java" is expected to be running Failure/Error: it { is_expected.to be_running } expected Process "java" to be running
end

describe port(8080) do
it { is_expected.to be_listening }

Check failure on line 155 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql Port "8080" is expected to be listening Failure/Error: it { is_expected.to be_listening } expected Port "8080" to be listening
end

describe service('jira') do
it { is_expected.to be_enabled }

Check failure on line 159 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql Service "jira" is expected to be enabled Failure/Error: it { is_expected.to be_enabled } expected Service "jira" to be enabled
it { is_expected.to be_running }

Check failure on line 160 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql Service "jira" is expected to be running Failure/Error: it { is_expected.to be_running } expected Service "jira" to be running
end

describe user('jira') do
it { is_expected.to belong_to_group 'jira' }

Check failure on line 164 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql User "jira" is expected to belong to group "jira" Failure/Error: it { is_expected.to belong_to_group 'jira' } expected User "jira" to belong to group "jira"
it { is_expected.to have_login_shell '/bin/true' }

Check failure on line 165 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql User "jira" is expected to have login shell "/bin/true" Failure/Error: it { is_expected.to have_login_shell '/bin/true' } expected `User "jira".has_login_shell?("/bin/true")` to be truthy, got false
end

expected_version = '10.3.3'
describe command("wget -q --tries=54 --retry-connrefused --read-timeout=10 -O- localhost:8080 | grep '#{expected_version}'") do
its(:stdout) { is_expected.to include(expected_version) }

Check failure on line 170 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Debian 12

jira 10 jira 10 postgresql Command "wget -q --tries=54 --retry-connrefused --read-timeout=10 -O- localhost:8080 | grep '10.3.3'" stdout is expected to include "10.3.3" Failure/Error: its(:stdout) { is_expected.to include(expected_version) } expected "" to include "10.3.3"

Check failure on line 170 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql Command "wget -q --tries=54 --retry-connrefused --read-timeout=10 -O- localhost:8080 | grep '10.3.3'" stdout is expected to include "10.3.3" Failure/Error: its(:stdout) { is_expected.to include(expected_version) } expected "" to include "10.3.3"
end

# cleanup after this spec to ensure that following tests start without any unmanaged
Expand All @@ -176,7 +177,7 @@
apply_manifest(pp_remove, catch_failures: true)
end

it { shell('systemctl stop jira', acceptable_exit_codes: [0, 1]) }

Check failure on line 180 in spec/acceptance/default_parameters_jira_10_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Ubuntu 22.04

jira 10 jira 10 postgresql shutdown Failure/Error: it { shell('systemctl stop jira', acceptable_exit_codes: [0, 1]) } Beaker::Host::CommandFailure: Host 'ubuntu2204-64-openvox8.example.com' exited with 5 running: systemctl stop jira Last 10 lines of output were: Failed to stop jira.service: Unit jira.service not loaded.
it { shell('pkill -9 -f postgres', acceptable_exit_codes: [0, 1]) }
it { shell('pkill -9 -f jira', acceptable_exit_codes: [0, 1]) }
end
Expand Down
Loading