Skip to content

Commit

Permalink
switch tests to Solr 9.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Mar 27, 2024
1 parent 273cb69 commit 755b6f2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ Install Solr with default settings and start the service afterwards:

```puppet
class { 'solr':
version => '9.0.0',
version => '9.4.1',
}
```

Furthermore, a number of simple options are available:

```puppet
class { 'solr':
version => '9.0.0',
version => '9.4.1',
# Allow automatic upgrades (when changing $version)
upgrade => true,
Expand Down Expand Up @@ -97,7 +97,7 @@ This module makes it pretty easy to configure Solr Cloud:

```puppet
class { 'solr':
version => '9.0.0',
version => '9.4.1',
# Setup Solr cloud
cloud => true,
zk_chroot => 'foo',
Expand All @@ -113,7 +113,7 @@ When using Solr Cloud, you may use this module to manage your [custom plugins](h

```puppet
class { 'solr':
version => '9.0.0',
version => '9.4.1',
# Setup Solr cloud
cloud => true,
...
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper_acceptance'

describe 'solr class' do
let(:solr_version) { '9.0.0' }
let(:solr_version) { '9.4.1' }

before(:all) do
apply_manifest(%(
Expand Down Expand Up @@ -72,7 +72,7 @@ class { 'solr':
let(:pp) do
<<-MANIFEST
class { 'solr':
version => '9.0.0',
version => '9.4.1',
# Use 'localhost' for acceptance tests.
solr_host => 'localhost',
# Use Apache Archive, because "old" releases get removed
Expand Down
24 changes: 12 additions & 12 deletions spec/classes/solr_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
context 'solr class without optional parameters' do
let(:params) do
{
version: '9.0.0',
version: '9.4.1',
}
end

Expand All @@ -32,10 +32,10 @@
end

it {
is_expected.to contain_archive('/opt/staging/solr-9.0.0.tgz').with(
is_expected.to contain_archive('/opt/staging/solr-9.4.1.tgz').with(
extract_path: '/opt/staging',
source: 'https://dlcdn.apache.org/solr/solr/9.0.0/solr-9.0.0.tgz',
creates: '/opt/staging/solr-9.0.0',
source: 'https://dlcdn.apache.org/solr/solr/9.4.1/solr-9.4.1.tgz',
creates: '/opt/staging/solr-9.4.1',
)
}
it {
Expand All @@ -47,10 +47,10 @@
}
it {
is_expected.to contain_exec('run solr install script').with(
command: '/opt/staging/solr-9.0.0/bin/install_solr_service.sh /opt/staging/solr-9.0.0.tgz -i /opt -d /var/solr -u solr -s solr -p 8983 -n ',
cwd: '/opt/staging/solr-9.0.0',
creates: '/opt/solr-9.0.0',
).that_requires('Archive[/opt/staging/solr-9.0.0.tgz]')
command: '/opt/staging/solr-9.4.1/bin/install_solr_service.sh /opt/staging/solr-9.4.1.tgz -i /opt -d /var/solr -u solr -s solr -p 8983 -n ',
cwd: '/opt/staging/solr-9.4.1',
creates: '/opt/solr-9.4.1',
).that_requires('Archive[/opt/staging/solr-9.4.1.tgz]')
}
it {
is_expected.to contain_file('/var/solr').with(
Expand Down Expand Up @@ -82,7 +82,7 @@
is_expected.to contain_file('/var/solr/solr.in.sh').with_content(%r{SOLR_PORT=8983})
}
it {
is_expected.to contain_file('/opt/solr-9.0.0/server/resources/log4j2.xml').with(
is_expected.to contain_file('/opt/solr-9.4.1/server/resources/log4j2.xml').with(
ensure: 'file',
mode: '0644',
owner: 'solr',
Expand Down Expand Up @@ -115,7 +115,7 @@
let(:params) do
{
manage_service_limits: false,
version: '9.0.0',
version: '9.4.1',
}
end

Expand All @@ -130,7 +130,7 @@
let(:params) do
{
enable_prometheus_exporter: true,
version: '9.0.0',
version: '9.4.1',
}
end

Expand Down Expand Up @@ -181,7 +181,7 @@
{
enable_prometheus_exporter: true,
prometheus_exporter_env_vars: { 'JAVA_HEAP': '128m' },
version: '9.0.0',
version: '9.4.1',
}
end

Expand Down

0 comments on commit 755b6f2

Please sign in to comment.