Skip to content

Add Puppet 8 support #1545

Add Puppet 8 support

Add Puppet 8 support #1545

Triggered via pull request November 7, 2023 11:51
Status Failure
Total duration 44m 7s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
2m 43s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

9 errors
Puppet / 8 (Ruby 3.2): spec/functions/foreman_foreman_spec.rb#L13
foreman::foreman should succeed with no timeout specified Failure/Error: is_expected.to run.with_params('hosts', 'hostgroup=Grid', '20', 'https://foreman.example.com', 'my_api_foreman_user', 'my_api_foreman_pass') expected foreman::foreman("hosts", "hostgroup=Grid", "20", "https://foreman.example.com", "my_api_foreman_user", "my_api_foreman_pass") to have run successfully instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:92:in `rescue in foreman' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:64:in `foreman' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatch.rb:61:in `invoke' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:48:in `block in dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:44:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_foreman_spec.rb:18:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:511:in `block in with_around_and_singleton_context_hooks' /home/runner/work/puppet-foreman/puppet-foreman
Puppet / 8 (Ruby 3.2): spec/functions/foreman_foreman_spec.rb#L21
foreman::foreman should succeed with a non-default timeout specified Failure/Error: is_expected.to run.with_params('hosts', 'hostgroup=Grid', '20', 'https://foreman.example.com', 'my_api_foreman_user', 'my_api_foreman_pass', 15) expected foreman::foreman("hosts", "hostgroup=Grid", "20", "https://foreman.example.com", "my_api_foreman_user", "my_api_foreman_pass", 15) to have run successfully instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:92:in `rescue in foreman' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:64:in `foreman' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatch.rb:61:in `invoke' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:48:in `block in dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:44:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_foreman_spec.rb:26:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:511:in `block in with_around_and_singleton_context_hooks' /home/runner/work/puppet-for
Puppet / 8 (Ruby 3.2): spec/functions/foreman_foreman_spec.rb#L29
foreman::foreman should throw an "execution expired" error when the timeout is exceeded Failure/Error: is_expected.to run.with_params('hosts', 'hostgroup=Grid', '20', 'https://foreman.example.com', 'my_api_foreman_user', 'my_api_foreman_pass', 1).and_raise_error(/execution expired/) expected foreman::foreman("hosts", "hostgroup=Grid", "20", "https://foreman.example.com", "my_api_foreman_user", "my_api_foreman_pass", 1) to have raised Exception matching /execution expired/ instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:92:in `rescue in foreman' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:64:in `foreman' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatch.rb:61:in `invoke' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:48:in `block in dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:44:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_foreman_spec.rb:34:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:511:
Puppet / 8 (Ruby 3.2): spec/functions/foreman_foreman_spec.rb#L37
foreman::foreman should not throw an "execution expired" error with the default timeout Failure/Error: is_expected.to run.with_params('hosts', 'hostgroup=Grid', '20', 'https://foreman.example.com', 'my_api_foreman_user', 'my_api_foreman_pass') expected foreman::foreman("hosts", "hostgroup=Grid", "20", "https://foreman.example.com", "my_api_foreman_user", "my_api_foreman_pass") to have run successfully instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Pops::Loader::RubyFunctionInstantiator::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:92:in `rescue in foreman' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/functions/foreman/foreman.rb:64:in `foreman' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatch.rb:61:in `invoke' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:48:in `block in dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/dispatcher.rb:47:in `dispatch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:44:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/pops/functions/function.rb:43:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_foreman_spec.rb:42:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:511:in `block in with_around_and_singleton_context_hooks' /home/runner/work
Puppet / 8 (Ruby 3.2): spec/functions/foreman_spec.rb#L13
foreman should succeed with no timeout specified Failure/Error: is_expected.to run.with_params( 'item' => 'hosts', 'search' => 'hostgroup=Grid', 'per_page' => '20', 'foreman_url' => 'https://foreman.example.com', 'foreman_user' => 'my_api_foreman_user', 'foreman_pass' => 'my_api_foreman_pass' ) expected foreman({"item"=>"hosts", "search"=>"hostgroup=Grid", "per_page"=>"20", "foreman_url"=>"https://foreman.example.com", "foreman_user"=>"my_api_foreman_user", "foreman_pass"=>"my_api_foreman_pass"}) to have run successfully instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Parser::Functions::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:96:in `rescue in block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:68:in `block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler.rb:52:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:209:in `block in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:752:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_spec.rb:18:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppet-foreman/puppet-foreman/vendo
Puppet / 8 (Ruby 3.2): spec/functions/foreman_spec.rb#L28
foreman should succeed with a non-default timeout specified Failure/Error: is_expected.to run.with_params( 'item' => 'hosts', 'search' => 'hostgroup=Grid', 'per_page' => '20', 'foreman_url' => 'https://foreman.example.com', 'foreman_user' => 'my_api_foreman_user', 'foreman_pass' => 'my_api_foreman_pass', 'timeout' => '15' ) expected foreman({"item"=>"hosts", "search"=>"hostgroup=Grid", "per_page"=>"20", "foreman_url"=>"https://foreman.example.com", "foreman_user"=>"my_api_foreman_user", "foreman_pass"=>"my_api_foreman_pass", "timeout"=>"15"}) to have run successfully instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Parser::Functions::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:96:in `rescue in block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:68:in `block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler.rb:52:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:209:in `block in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:752:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_spec.rb:33:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `block in run'
Puppet / 8 (Ruby 3.2): spec/functions/foreman_spec.rb#L44
foreman should throw an "execution expired" error when the timeout is exceeded Failure/Error: is_expected.to run.with_params( 'item' => 'hosts', 'search' => 'hostgroup=Grid', 'per_page' => '20', 'foreman_url' => 'https://foreman.example.com', 'foreman_user' => 'my_api_foreman_user', 'foreman_pass' => 'my_api_foreman_pass', 'timeout' => '1' ).and_raise_error(/execution expired/) expected foreman({"item"=>"hosts", "search"=>"hostgroup=Grid", "per_page"=>"20", "foreman_url"=>"https://foreman.example.com", "foreman_user"=>"my_api_foreman_user", "foreman_pass"=>"my_api_foreman_pass", "timeout"=>"1"}) to have raised Exception matching /execution expired/ instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Parser::Functions::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:96:in `rescue in block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:68:in `block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler.rb:52:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:209:in `block in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:752:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_spec.rb:49:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundl
Puppet / 8 (Ruby 3.2): spec/functions/foreman_spec.rb#L60
foreman should not throw an "execution expired" error with the default timeout Failure/Error: is_expected.to run.with_params( 'item' => 'hosts', 'search' => 'hostgroup=Grid', 'per_page' => '20', 'foreman_url' => 'https://foreman.example.com', 'foreman_user' => 'my_api_foreman_user', 'foreman_pass' => 'my_api_foreman_pass' ) expected foreman({"item"=>"hosts", "search"=>"hostgroup=Grid", "per_page"=>"20", "foreman_url"=>"https://foreman.example.com", "foreman_user"=>"my_api_foreman_user", "foreman_pass"=>"my_api_foreman_pass"}) to have run successfully instead of Puppet::ParseError(Failed to contact Foreman at https://foreman.example.com: uninitialized constant Puppet::Parser::Functions::PSON) /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:96:in `rescue in block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/spec/fixtures/modules/foreman/lib/puppet/parser/functions/foreman.rb:68:in `block in <module:Functions>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/util/profiler.rb:52:in `profile' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/parser/functions.rb:209:in `block in newfunction' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:752:in `block in call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `catch' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/functions.rb:749:in `call' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet/context.rb:63:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/puppet-8.2.0/lib/puppet.rb:286:in `override' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:65:in `to' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/expectation_target.rb:101:in `to' /home/runner/work/puppet-foreman/puppet-foreman/spec/functions/foreman_spec.rb:65:in `block (2 levels) in <top (required)>' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `instance_exec' /home/runner/work/puppet-foreman/puppet-foreman/vendor/bundle/ruby/3.2.0/gems/rspec-core-3.12.2/lib/rspec/core/example.rb:263:in `block in run' /home/runner/work/puppe
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.