Skip to content

Commit

Permalink
Modernize the acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Feb 16, 2024
1 parent 45fac54 commit 9f7c674
Show file tree
Hide file tree
Showing 7 changed files with 149 additions and 182 deletions.
28 changes: 13 additions & 15 deletions spec/acceptance/redis_cli_task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,18 @@

let(:task_name) { 'redis::redis_cli' }

it 'install redis-cli with the class' do
pp = <<-EOS
include redis
EOS

apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

unless fact('os.family') == 'RedHat' && fact('os.release.major').to_i >= 9
include_examples 'an idempotent resource' do
let(:manifest) { 'include redis' }
end

describe 'ping' do
let(:params) { 'command="ping"' }

it 'execute ping' do
is_expected.to match(%r{{\s*"status":\s*"PONG"\s*}})
is_expected.to match(%r{Ran on 1 target in .+ sec})
is_expected.
to match(%r{{\s*"status":\s*"PONG"\s*}}).
and match(%r{Ran on 1 target in .+ sec})
end
end

Expand All @@ -33,17 +29,19 @@
let(:params) { 'command="ping; cat /etc/passwd"' }

it 'stops script injections and escapes' do
is_expected.to match(%r!{\s*"status":\s*"ERR unknown command ('|`)ping; cat /etc/passwd('|`)!)
is_expected.to match(%r{Ran on 1 target in .+ sec})
is_expected.
to match(%r!{\s*"status":\s*"ERR unknown command ('|`)ping; cat /etc/passwd('|`)!).
and match(%r{Ran on 1 target in .+ sec})
end
end

describe 'command with double ampersand' do
let(:params) { 'command="ping && cat /etc/passwd"' }

it 'stops script injections and escapes' do
is_expected.to match(%r!{\s*"status":\s*"ERR unknown command ('|`)ping && cat /etc/passwd('|`)!)
is_expected.to match(%r{Ran on 1 target in .+ sec})
is_expected.
to match(%r!{\s*"status":\s*"ERR unknown command ('|`)ping && cat /etc/passwd('|`)!).
and match(%r{Ran on 1 target in .+ sec})
end
end
end
Expand Down
32 changes: 17 additions & 15 deletions spec/acceptance/suites/default/redis_adminstration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,31 @@

require 'spec_helper_acceptance'

RSpec::Matchers.define_negated_matcher :execute_without_warning, :execute_with_warning

# systcl settings are untestable in docker
describe 'redis::administration', unless: default['hypervisor'] =~ %r{docker} do
it 'runs successfully' do
pp = <<-EOS
include redis
include redis::administration
EOS
def execute_with_warning
have_attributes(stderr: %r{WARNING})
end

# Apply twice to ensure no errors the second time.
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
include_examples 'an idempotent resource' do
let(:manifest) { 'include redis, redis::administration' }
end

describe file('/proc/sys/vm/overcommit_memory') do
its(:content) { is_expected.to eq("1\n") }
specify do
expect(file('/proc/sys/vm/overcommit_memory')).
to have_attributes(content: "1\n")
end

describe file('/proc/sys/net/core/somaxconn') do
its(:content) { is_expected.to eq("65535\n") }
specify do
expect(file('/proc/sys/net/core/somaxconn')).
to have_attributes(content: "65535\n")
end

describe command('timeout 1s redis-server --port 7777 --loglevel verbose') do
its(:stderr) { is_expected.not_to match(%r{WARNING}) }
its(:exit_status) { is_expected.to eq(124) }
specify do
expect(command('timeout 1s redis-server --port 7777 --loglevel verbose')).
to execute_without_warning.
and have_attributes(exit_status: 124)
end
end
107 changes: 58 additions & 49 deletions spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,66 +29,75 @@
'redis'
end

it 'runs successfully' do
pp = <<-EOS
$listening_ports = #{instances}
class { 'redis':
default_install => false,
service_enable => false,
service_ensure => 'stopped',
protected_mode => false,
bind => [],
}
$listening_ports.each |$port| {
$port_string = sprintf('%d',$port)
redis::instance { $port_string:
service_enable => true,
service_ensure => 'running',
port => $port,
bind => $facts['networking']['ip'],
dbfilename => "${port}-dump.rdb",
appendfilename => "${port}-appendonly.aof",
appendfsync => 'always',
require => Class['Redis'],
}
}
EOS

# Apply twice to ensure no errors the second time.
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
include_examples 'an idempotent resource' do
let(:manifest) do
<<~PUPPET
$listening_ports = #{instances}
class { 'redis':
default_install => false,
service_enable => false,
service_ensure => 'stopped',
protected_mode => false,
bind => [],
}
$listening_ports.each |$port| {
$port_string = sprintf('%d',$port)
redis::instance { $port_string:
service_enable => true,
service_ensure => 'running',
port => $port,
bind => $facts['networking']['ip'],
dbfilename => "${port}-dump.rdb",
appendfilename => "${port}-appendonly.aof",
appendfsync => 'always',
require => Class['Redis'],
}
$listening_ports.each |$port| {
$port_string = sprintf('%d',$port)
redis::instance { $port_string:
service_enable => true,
service_ensure => 'running',
port => $port,
bind => $facts['networking']['ip'],
dbfilename => "${port}-dump.rdb",
appendfilename => "${port}-appendonly.aof",
appendfsync => 'always',
require => Class['Redis'],
}
}
}
PUPPET
end
end

describe package(redis_name) do
it { is_expected.to be_installed }
end
specify { expect(package(redis_name)).to be_installed }

Check failure on line 76 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example is expected to be installed Failure/Error: specify { expect(package(redis_name)).to be_installed } expected Package "redis" to be installed

Check failure on line 76 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example is expected to be installed Failure/Error: specify { expect(package(redis_name)).to be_installed } expected Package "redis" to be installed

Check failure on line 76 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example is expected to be installed Failure/Error: specify { expect(package(redis_name)).to be_installed } expected Package "redis" to be installed

Check failure on line 76 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example is expected to be installed Failure/Error: specify { expect(package(redis_name)).to be_installed } expected Package "redis" to be installed

Check failure on line 76 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example is expected to be installed Failure/Error: specify { expect(package(redis_name)).to be_installed } expected Package "redis" to be installed

Check failure on line 76 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example is expected to be installed Failure/Error: specify { expect(package(redis_name)).to be_installed } expected Package "redis" to be installed

describe service(redis_name) do
it { is_expected.not_to be_enabled }
it { is_expected.not_to be_running }
specify do

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis-server" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis-server" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis-server" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis-server" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis-server" not to be enabled

Check failure on line 78 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example is expected not to be enabled Failure/Error: expect(service(redis_name)).not_to be_enabled expected Service "redis-server" not to be enabled
expect(service(redis_name)).not_to be_enabled
expect(service(redis_name)).not_to be_running
end

instances.each do |instance|
describe file("/etc/systemd/system/redis-server-#{instance}.service") do
its(:content) { is_expected.to match %r{redis-server-#{instance}.conf} }
specify do

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6379.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6379.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6379.service" to have attributes {:content => (include "redis-server-6379.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6379.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6379.conf"), +:content => "",

Check failure on line 84 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "redis-server-6380.conf")} Failure/Error: expect(file("/etc/systemd/system/redis-server-#{instance}.service")). to be_file. and have_attributes(content: include("redis-server-#{instance}.conf")) expected `File "/etc/systemd/system/redis-server-6380.service".file?` to be truthy, got false ...and: expected File "/etc/systemd/system/redis-server-6380.service" to have attributes {:content => (include "redis-server-6380.conf")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "redis-server-6380.conf")}): @@ -1 +1 @@ -:content => (include "redis-server-6380.conf"), +:content => "",
expect(file("/etc/systemd/system/redis-server-#{instance}.service")).
to be_file.
and have_attributes(content: include("redis-server-#{instance}.conf"))
end

describe service("redis-server-#{instance}") do
it { is_expected.to be_enabled }
it { is_expected.to be_running }
end
specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running }

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6379" to be enabled ...and: expected Service "redis-server-6379" to be running

Check failure on line 90 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example is expected to be enabled and be running Failure/Error: specify { expect(service("redis-server-#{instance}")).to be_enabled.and be_running } expected Service "redis-server-6380" to be enabled ...and: expected Service "redis-server-6380" to be running

describe file("#{config_path}/redis-server-#{instance}.conf") do
its(:content) { is_expected.to match %r{port #{instance}} }
specify do

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6379")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6379.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6379.conf" to have attributes {:content => (include "port 6379")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6379")}): @@ -1 +1 @@ -:content => (include "port 6379"), +:content => "",

Check failure on line 92 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example is expected to be file and have attributes {:content => (include "port 6380")} Failure/Error: expect(file("#{config_path}/redis-server-#{instance}.conf")). to be_file. and have_attributes(content: include("port #{instance}")) expected `File "/etc/redis/redis-server-6380.conf".file?` to be truthy, got false ...and: expected File "/etc/redis/redis-server-6380.conf" to have attributes {:content => (include "port 6380")} but had attributes {:content => ""} Diff for (have attributes {:content => (include "port 6380")}): @@ -1 +1 @@ -:content => (include "port 6380"), +:content => "",
expect(file("#{config_path}/redis-server-#{instance}.conf")).
to be_file.
and have_attributes(content: include("port #{instance}"))
end

context "redis instance #{instance} should respond to ping command" do
describe command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping") do
its(:stdout) { is_expected.to match %r{PONG} }
end
specify "redis instance #{instance} should respond to ping command" do

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 9

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 9

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 9

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 9

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 9

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 9

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - AlmaLinux 8

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - AlmaLinux 8

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - CentOS 8

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - CentOS 8

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Rocky 8

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Debian 11

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Rocky 8

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Debian 11

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 22.04

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 22.04

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Ubuntu 20.04

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",

Check failure on line 98 in spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 8 - Ubuntu 20.04

redis::instance example redis instance 6379 should respond to ping command Failure/Error: expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")). to have_attributes(stdout: %r{PONG}) expected Command "redis-cli -h 172.17.0.2 -p 6379 ping" to have attributes {:stdout => /PONG/} but had attributes {:stdout => ""} Diff: @@ -1 +1 @@ -:stdout => /PONG/, +:stdout => "",
expect(command("redis-cli -h #{fact('networking.ip')} -p #{instance} ping")).
to have_attributes(stdout: %r{PONG})
end
end
end
66 changes: 25 additions & 41 deletions spec/acceptance/suites/default/redis_sentinel_one_node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,38 @@
require 'spec_helper_acceptance'

describe 'redis::sentinel' do
redis_name = case fact('osfamily')
when 'Debian'
'redis-server'
else
'redis'
end

it 'runs successfully' do
pp = <<-EOS
class { 'redis::sentinel':
master_name => 'mymaster',
redis_host => '127.0.0.1',
failover_timeout => 10000,
}
EOS

apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe package(redis_name) do
it { is_expected.to be_installed }
redis_name = fact('osfamily') == 'Debian' ? 'redis-server' : 'redis'

include_examples 'an idempotent resource' do
let(:manifest) do
<<-PUPPET
class { 'redis::sentinel':
master_name => 'mymaster',
redis_host => '127.0.0.1',
failover_timeout => 10000,
}
PUPPET
end
end

describe service(redis_name) do
it { is_expected.to be_running }
end
specify { expect(package(redis_name)).to be_installed }
specify { expect(service(redis_name)).to be_running }

describe service('redis-sentinel'), :sentinel do
it { is_expected.to be_running }
specify 'redis should respond to ping command' do
expect(command('redis-cli ping')).
to have_attributes(stdout: %r{PONG})
end

case fact('osfamily')
when 'Debian'
describe package('redis-sentinel') do
it { is_expected.to be_installed }
end
end
specify { expect(service('redis-sentinel')).to be_running }

context 'redis should respond to ping command' do
describe command('redis-cli ping') do
its(:stdout) { is_expected.to match %r{PONG} }
end
if redis_name == 'redis-server'
specify { expect(package('redis-sentinel')).to be_installed }
else
specify { expect(package('redis-sentinel')).not_to be_installed }
end

context 'redis-sentinel should return correct sentinel master' do
describe command('redis-cli -p 26379 SENTINEL masters') do
its(:stdout) { is_expected.to match %r{^mymaster} }
end
specify 'redis-sentinel should return correct sentinel master' do
expect(command('redis-cli -p 26379 SENTINEL masters')).
to have_attributes(stdout: %r{^mymaster})
end
end
33 changes: 8 additions & 25 deletions spec/acceptance/suites/default/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@
require 'spec_helper_acceptance'

describe 'redis' do
redis_name = case fact('osfamily')
when 'Debian'
'redis-server'
else
'redis'
end

it 'runs successfully' do
pp = <<-EOS
include redis
EOS
redis_name = fact('osfamily') == 'Debian' ? 'redis-server' : 'redis'

# Apply twice to ensure no errors the second time.
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
include_examples 'an idempotent resource' do
let(:manifest) { 'include redis' }
end

it 'returns a fact' do
Expand All @@ -31,18 +20,12 @@
end
end

describe package(redis_name) do
it { is_expected.to be_installed }
end

describe service(redis_name) do
it { is_expected.to be_running }
end
specify { expect(package(redis_name)).to be_installed }
specify { expect(service(redis_name)).to be_running }

context 'redis should respond to ping command' do
describe command('redis-cli ping') do
its(:stdout) { is_expected.to match %r{PONG} }
end
specify 'redis should respond to ping command' do
expect(command('redis-cli ping')).
to have_attributes(stdout: %r{PONG})
end

it 'runs successfully when using Redis apt repository', if: (fact('os.family') == 'Debian') do
Expand Down
Loading

0 comments on commit 9f7c674

Please sign in to comment.