Modernize the acceptance tests #440
Annotations
10 errors
Run tests:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.0.0/lib/voxpupuli/acceptance/examples.rb#L4
redis::instance example applies with no errors
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux9-64-puppet8.example.com' exited with 1 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_184454382.pp.OC7Hqo
Last 10 lines of output were:
Info: Loading facts
Info: Loading facts
Info: Loading facts
Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Redis::Instance[6379] is already declared at (file: /tmp/apply_manifest_184454382.pp.OC7Hqo, line: 13); cannot redeclare (file: /tmp/apply_manifest_184454382.pp.OC7Hqo, line: 26) (file: /tmp/apply_manifest_184454382.pp.OC7Hqo, line: 26, column: 5) on node almalinux9-64-puppet8.example.com
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb:32
|
Run tests:
vendor/bundle/ruby/3.2.0/gems/voxpupuli-acceptance-3.0.0/lib/voxpupuli/acceptance/examples.rb#L8
redis::instance example applies a second time without changes
Failure/Error: raise CommandFailure, "Host '#{self}' exited with #{result.exit_code} running:\n #{cmdline}\nLast #{@options[:trace_limit]} lines of output were:\n#{result.formatted_output(@options[:trace_limit])}"
Beaker::Host::CommandFailure:
Host 'almalinux9-64-puppet8.example.com' exited with 1 running:
puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_184457096.pp.ulzxoQ
Last 10 lines of output were:
Info: Loading facts
Info: Loading facts
Info: Loading facts
Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Redis::Instance[6379] is already declared at (file: /tmp/apply_manifest_184457096.pp.ulzxoQ, line: 13); cannot redeclare (file: /tmp/apply_manifest_184457096.pp.ulzxoQ, line: 26) (file: /tmp/apply_manifest_184457096.pp.ulzxoQ, line: 26, column: 5) on node almalinux9-64-puppet8.example.com
Shared Example Group: "an idempotent resource" called from ./spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb:32
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L76
redis::instance example is expected to be installed
Failure/Error: specify { expect(package(redis_name)).to be_installed }
expected Package "redis" to be installed
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L84
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 => "",
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L90
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
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L92
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 => "",
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L98
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 => "",
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L84
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 => "",
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L90
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
|
Run tests:
spec/acceptance/suites/default/redis_multi_instances_one_host_spec.rb#L92
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 => "",
|
The logs for this run have expired and are no longer available.
Loading