Skip to content

Clean up fixtures and codebase hardening #55

Clean up fixtures and codebase hardening

Clean up fixtures and codebase hardening #55

Triggered via pull request February 13, 2024 16:09
Status Failure
Total duration 2m 22s
Artifacts

ci.yml

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

Annotations

10 errors
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L17
monit::check with default values for parameters is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile.with_all_deps } error during compilation: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L18
monit::check with default values for parameters is expected to contain Class[monit] Failure/Error: it { is_expected.to contain_class('monit') } Puppet::PreformattedError: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L20
monit::check with default values for parameters is expected to contain File[/etc/monit/conf.d/test] with ensure => "present", owner => "root", group => "root", mode => "0644", source defined, content defined, notify => "Service[monit]" and require => "Package[monit]" Failure/Error: is_expected.to contain_file('/etc/monit/conf.d/test').with('ensure' => 'present', 'owner' => 'root', 'group' => 'root', 'mode' => '0644', 'source' => nil, 'content' => nil, 'notify' => 'Service[monit]', 'require' => 'Package[monit]') Puppet::PreformattedError: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L40
monit::check with ensure set to valid <absent> is expected to contain File[/etc/monit/conf.d/test] with ensure => "absent", owner => "root", group => "root", mode => "0644", source defined, content defined, notify => "Service[monit]" and require => "Package[monit]" Failure/Error: is_expected.to contain_file('/etc/monit/conf.d/test').with('ensure' => value, 'owner' => 'root', 'group' => 'root', 'mode' => '0644', 'source' => nil, 'content' => nil, 'notify' => 'Service[monit]', 'require' => 'Package[monit]') Puppet::PreformattedError: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L40
monit::check with ensure set to valid <present> is expected to contain File[/etc/monit/conf.d/test] with ensure => "present", owner => "root", group => "root", mode => "0644", source defined, content defined, notify => "Service[monit]" and require => "Package[monit]" Failure/Error: is_expected.to contain_file('/etc/monit/conf.d/test').with('ensure' => value, 'owner' => 'root', 'group' => 'root', 'mode' => '0644', 'source' => nil, 'content' => nil, 'notify' => 'Service[monit]', 'require' => 'Package[monit]') Puppet::PreformattedError: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L67
monit::check with content set to a valid value is expected to contain File[/etc/monit/conf.d/test] with ensure => "present", owner => "root", group => "root", mode => "0644", source defined, content supplied string, notify => "Service[monit]" and require => "Package[monit]" Failure/Error: is_expected.to contain_file('/etc/monit/conf.d/test').with('ensure' => 'present', 'owner' => 'root', 'group' => 'root', 'mode' => '0644', 'source' => nil, 'content' => content, 'notify' => 'Service[monit]', 'require' => 'Package[monit]') Puppet::PreformattedError: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L86
monit::check with source set to a valid value is expected to contain File[/etc/monit/conf.d/test] with ensure => "present", owner => "root", group => "root", mode => "0644", source => "puppet:///modules/monit/ntp", content defined, notify => "Service[monit]" and require => "Package[monit]" Failure/Error: is_expected.to contain_file('/etc/monit/conf.d/test').with('ensure' => 'present', 'owner' => 'root', 'group' => 'root', 'mode' => '0644', 'source' => 'puppet:///modules/monit/ntp', 'content' => nil, 'notify' => 'Service[monit]', 'require' => 'Package[monit]') Puppet::PreformattedError: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L106
monit::check with content and source set at the same time fails Failure/Error: expect do catalogue end.to raise_error(Puppet::Error, %r{Parameters source and content are mutually exclusive}) expected Puppet::Error with message matching /Parameters source and content are mutually exclusive/, got #<Puppet::PreformattedError: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /ho....pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net> with backtrace: # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/runtime3_support.rb:39:in `optionally_fail' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/runtime3_support.rb:21:in `fail' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/runtime3_support.rb:309:in `call_function' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:995:in `call_function_with_block' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:964:in `eval_CallNamedFunctionExpression' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/visitor.rb:94:in `visit_this_1' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:81:in `evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:679:in `block in eval_BlockExpression' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:679:in `each' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:679:in `reduce' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:679:in `eval_BlockExpression' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/visitor.rb:94:in `visit_this_1' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/evaluator/evaluator_impl.rb:81:in `evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/parser/evaluating_parser.rb:60:in `evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/ast/pops_bridge.rb:27:in `evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/ast/pops_bridge.rb:63:in `block (2 levels) in evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/ast/pops_bridge.rb:62:in `catch' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/ast/pops_bridge.rb:62:in `block in evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/ast/pops_bridge.rb:61:in `catch' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/ast/pops_bridge.rb:61:in `evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/ast.rb:30:in `safeevaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/resource/type.rb:80:in `evaluate_code' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/resource.rb:79:in `block in evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/util/profiler/around_profiler.rb:58:in `profile' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/util/profiler.rb:51:in `profile' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/resource.rb:71:in `evaluate' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/compiler.rb:259:in `each' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/parser/compiler.rb:259:in `evaluate_classes' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/functions/include.rb:48:in `include' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/functions/dispatch.rb:60:in `invoke' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/functions/dispatcher.rb:47:in `block in dispatch' # ./vendor/bundle/ruby/2.7.0/gems/puppet-7.28.0/lib/puppet/pops/functions/dispatcher.rb:46:in `catch' # ./vendor/b
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L155
monit::check variable type and content validations with ensure (regex_file_ensure) set to valid present (as String) is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile } error during compilation: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/check_spec.rb#L155
monit::check variable type and content validations with ensure (regex_file_ensure) set to valid absent (as String) is expected to compile into a catalogue without dependency cycles Failure/Error: it { is_expected.to compile } error during compilation: Evaluation Error: Unknown function: 'validate_absolute_path'. (file: /home/runner/work/puppet-monit/puppet-monit/spec/fixtures/modules/monit/manifests/init.pp, line: 180, column: 3) on node fv-az532-921.yhfsaq54z0vebhuvdla3z0z0vh.cx.internal.cloudapp.net