Keep up with the Fauxhai and ChefSpec updates

parent df91ce64
......@@ -327,7 +327,7 @@ node['erlang']['esl']['version'] = "22.3.4.4-1"
Set `node['rabbitmq']['version']` to specify a version:
``` ruby
node['rabbitmq']['version'] = "3.7.26"
node['rabbitmq']['version'] = "3.7.28"
```
If you have `node['rabbitmq']['deb_package_url']` or `node['rabbitmq']['rpm_package_url']` overridden
......
# frozen_string_literal: true
# Version to install
default['rabbitmq']['version'] = '3.7.26'
default['rabbitmq']['version'] = '3.7.28'
# When true, distribution-provided package will be used.
# This may be useful e.g. on old distributions.
......
......@@ -23,7 +23,7 @@ describe 'rabbitmq::community_plugins' do
:source => download_url,
:owner => 'rabbitmq',
:group => 'rabbitmq',
:mode => 0644
:mode => '644'
)
end
......
......@@ -4,7 +4,7 @@ require 'spec_helper'
describe 'rabbitmq::default' do
let(:runner) do
ChefSpec::ServerRunner.new(REDHAT_OPTS) do |node, _|
node.override['rabbitmq']['version'] = '3.7.26'
node.override['rabbitmq']['version'] = '3.7.28'
end
end
let(:node) { runner.node }
......@@ -29,7 +29,7 @@ describe 'rabbitmq::default' do
:user => 'root',
:group => 'root',
:source => 'rabbitmq-env.conf.erb',
:mode => 00644)
:mode => '644')
end
it 'has no erl args by default' do
......@@ -109,7 +109,7 @@ describe 'rabbitmq::default' do
describe 'when Erlang is provisioned from ESL' do
let(:runner) do
ChefSpec::ServerRunner.new(REDHAT_OPTS) do |node, _|
node.override['rabbitmq']['version'] = '3.7.26'
node.override['rabbitmq']['version'] = '3.7.28'
node.override['rabbitmq']['erlang']['enabled'] = false
end
end
......@@ -128,7 +128,7 @@ describe 'rabbitmq::default' do
:user => 'root',
:group => 'root',
:source => 'default.rabbitmq-server.erb',
:mode => 00644
:mode => '644'
)
end
......@@ -137,7 +137,7 @@ describe 'rabbitmq::default' do
:user => 'root',
:group => 'root',
:source => 'rabbitmq.config.erb',
:mode => 00644)
:mode => '644')
if Gem::Version.new(Chef::VERSION.to_s) >= Gem::Version.new('11.14.2')
expect(chef_run).to create_template('/etc/rabbitmq/rabbitmq.config').with(:sensitive => true)
......@@ -262,7 +262,7 @@ describe 'rabbitmq::default' do
describe 'suse' do
let(:runner) do
ChefSpec::ServerRunner.new(SUSE_OPTS) do |node, _|
node.override['rabbitmq']['version'] = '3.7.26'
node.override['rabbitmq']['version'] = '3.7.28'
end
end
let(:node) { runner.node }
......@@ -290,12 +290,12 @@ describe 'rabbitmq::default' do
describe 'ubuntu' do
let(:runner) do
ChefSpec::ServerRunner.new(UBUNTU_OPTS) do |node, _|
node.override['rabbitmq']['version'] = '3.7.26'
node.override['rabbitmq']['version'] = '3.7.28'
end
end
let(:node) { runner.node }
let(:chef_run) do
node.override['rabbitmq']['version'] = '3.7.26'
node.override['rabbitmq']['version'] = '3.7.28'
runner.converge(described_recipe)
end
......@@ -315,7 +315,7 @@ describe 'rabbitmq::default' do
end
it 'creates a rabbitmq-server deb in the cache path' do
expect(chef_run).to create_remote_file_if_missing('/tmp/rabbitmq-server_3.7.26-1_all.deb')
expect(chef_run).to create_remote_file_if_missing('/tmp/rabbitmq-server_3.7.28-1_all.deb')
end
it 'installs the rabbitmq-server deb_package with the default action' do
......@@ -327,7 +327,7 @@ describe 'rabbitmq::default' do
:user => 'root',
:group => 'root',
:source => 'default.rabbitmq-server.erb',
:mode => 00644)
:mode => '644')
end
describe 'uses distro version' do
......@@ -348,7 +348,7 @@ describe 'rabbitmq::default' do
describe 'redhat' do
let(:runner) do
ChefSpec::ServerRunner.new(REDHAT_OPTS) do |node, _|
node.override['rabbitmq']['version'] = '3.7.26'
node.override['rabbitmq']['version'] = '3.7.28'
end
end
let(:node) { runner.node }
......@@ -356,7 +356,7 @@ describe 'rabbitmq::default' do
runner.converge(described_recipe)
end
let(:rpm_file) { 'rabbitmq-server-3.7.26-1.el7.noarch.rpm' }
let(:rpm_file) { 'rabbitmq-server-3.7.28-1.el7.noarch.rpm' }
it 'creates a rabbitmq-server rpm in the cache path' do
expect(chef_run).to create_remote_file_if_missing("/tmp/#{rpm_file}")
......@@ -407,7 +407,7 @@ describe 'rabbitmq::default' do
describe 'CentOS 7' do
let(:runner) do
ChefSpec::ServerRunner.new(CENTOS7_OPTS) do |node, _|
node.override['rabbitmq']['version'] = '3.7.26'
node.override['rabbitmq']['version'] = '3.7.28'
node.override['rabbitmq']['use_distro_version'] = false
end
end
......@@ -416,7 +416,7 @@ describe 'rabbitmq::default' do
runner.converge(described_recipe)
end
let(:rpm_file) { 'rabbitmq-server-3.7.26-1.el7.noarch.rpm' }
let(:rpm_file) { 'rabbitmq-server-3.7.28-1.el7.noarch.rpm' }
it 'should install the logrotate package' do
expect(chef_run).to install_package('logrotate')
......
......@@ -11,37 +11,37 @@ require 'chef/application'
LOGLEVEL = :fatal
SUSE_OPTS = {
:platform => 'suse',
:version => '12.3',
:version => '12.5',
:log_level => LOGLEVEL
}
REDHAT_OPTS = {
:platform => 'redhat',
:version => '7.4',
:version => '8',
:log_level => LOGLEVEL,
:file_cache_path => '/tmp'
}
UBUNTU_OPTS = {
:platform => 'ubuntu',
:version => '16.04',
:version => '18.04',
:log_level => LOGLEVEL,
:file_cache_path => '/tmp'
}
CENTOS7_OPTS = {
:platform => 'centos',
:version => '7.4.1708',
:version => '7.7.1908',
:log_level => LOGLEVEL,
:file_cache_path => '/tmp'
}
CENTOS_OPTS = CENTOS7_OPTS
CENTOS6_OPTS = {
:platform => 'centos',
:version => '6.9',
:version => '6.10',
:log_level => LOGLEVEL,
:file_cache_path => '/tmp'
}
FEDORA_OPTS = {
:platform => 'fedora',
:version => '27',
:version => '32',
:log_level => LOGLEVEL,
:file_cache_path => '/tmp'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment