Devel #124
pr.yml
on: pull_request
Static code analysys
35s
Unit tests
4m 15s
Annotations
13 errors and 12 warnings
Static code analysys
Process completed with exit code 1.
|
Unit tests
The run was canceled by @alvagante.
|
Unit tests
Process completed with exit code 1.
|
Unit tests:
spec/functions/tp_content_spec.rb#L19
tp_content Given different combinations of params is expected to run tp_content("", "tp/spec/osfamily.erb", "tp/spec/osfamily.epp") and return "ERB: RedHat\n"
Failure/Error: it { is_expected.to run.with_params('','tp/spec/osfamily.erb','tp/spec/osfamily.epp').and_return("ERB: RedHat\n") }
expected tp_content("", "tp/spec/osfamily.erb", "tp/spec/osfamily.epp") to have returned "ERB: RedHat\n" instead of raising Puppet::ParseError(Failed to parse template tp/spec/osfamily.erb:
Filepath: /__w/puppet-tp/puppet-tp/spec/fixtures/modules/tp/templates/spec/osfamily.erb
Line: 1
Detail: undefined method `[]' for nil:NilClass
)
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:37:in `rescue in block (2 levels) in <top (required)>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:28:in `block (2 levels) in <top (required)>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:21:in `collect'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:21:in `block in <top (required)>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler.rb:52:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:209:in `block in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/scope.rb:1048:in `method_missing'
/__w/puppet-tp/puppet-tp/spec/fixtures/modules/tp/lib/puppet/parser/functions/tp_content.rb:19:in `block in <module:Functions>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler.rb:52:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:209:in `block in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/functions.rb:752:in `block in call'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/functions.rb:749:in `catch'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/functions.rb:749:in `call'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/context.rb:63:in `override'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet.rb:286:in `override'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/ha
|
Unit tests:
spec/functions/tp_content_spec.rb#L20
tp_content Given different combinations of params is expected to run tp_content("", "tp/spec/osfamily.erb", "") and return "ERB: RedHat\n"
Failure/Error: it { is_expected.to run.with_params('','tp/spec/osfamily.erb','').and_return("ERB: RedHat\n") }
expected tp_content("", "tp/spec/osfamily.erb", "") to have returned "ERB: RedHat\n" instead of raising Puppet::ParseError(Failed to parse template tp/spec/osfamily.erb:
Filepath: /__w/puppet-tp/puppet-tp/spec/fixtures/modules/tp/templates/spec/osfamily.erb
Line: 1
Detail: undefined method `[]' for nil:NilClass
)
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:37:in `rescue in block (2 levels) in <top (required)>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:28:in `block (2 levels) in <top (required)>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:21:in `collect'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions/template.rb:21:in `block in <top (required)>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler.rb:52:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:209:in `block in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/scope.rb:1048:in `method_missing'
/__w/puppet-tp/puppet-tp/spec/fixtures/modules/tp/lib/puppet/parser/functions/tp_content.rb:19:in `block in <module:Functions>'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:216:in `block (2 levels) in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler/around_profiler.rb:59:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/util/profiler.rb:52:in `profile'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/parser/functions.rb:209:in `block in newfunction'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/functions.rb:752:in `block in call'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/functions.rb:749:in `catch'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/functions.rb:749:in `call'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:21:in `block in execute'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet/context.rb:63:in `override'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/puppet-8.1.0/lib/puppet.rb:286:in `override'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/example/function_example_group.rb:20:in `execute'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-puppet-3.0.0/lib/rspec-puppet/matchers/run.rb:12:in `matches?'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:51:in `block in handle_matcher'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:27:in `with_matcher'
/opt/puppetlabs/pdk/private/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rspec-expectations-3.12.3/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
/opt/puppetlabs/pdk/privat
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L16
tp_lookup on redhat-8-x86_64 the tp_lookup function should raise a ParseError if there are less than 3 arguments
Failure/Error: expect { scope.function_tp_lookup(["1"]) }.to( raise_error(Puppet::Error))
expected Puppet::Error, got #<NoMethodError: undefined method `scope' for PuppetlabsSpec::PuppetInternals:Module> with backtrace:
# ./spec/functions/tp_lookup_spec.rb:10:in `block (5 levels) in <top (required)>'
# ./spec/functions/tp_lookup_spec.rb:17:in `block (6 levels) in <top (required)>'
# ./spec/functions/tp_lookup_spec.rb:17:in `block (5 levels) in <top (required)>'
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L24
tp_lookup on redhat-8-x86_64 with app rsyslog is expected to run tp_lookup("rsyslog", "settings", "tinydata", "merge") and return {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"rsyslog", "service_name"=>"rsyslog", "config_file_path"=>"/etc/rsyslog.conf", "config_dir_path"=>"/etc/rsyslog.d", "conf_dir_path"=>"/etc/rsyslog.d", "data_dir_path"=>"/var/log", "init_file_path"=>"/etc/sysconfig/rsyslog", "udp_port"=>"69", "pid_file_path"=>"/var/run/rsyslog.pid", "log_file_path"=>"/var/log/messages", "process_name"=>"rsyslogd", "process_user"=>"root", "process_group"=>"root", "version_command"=>"rsyslogd -v"}
Failure/Error: it { is_expected.to run.with_params(app,'settings','tinydata','merge').and_return(appdata) }
expected tp_lookup("rsyslog", "settings", "tinydata", "merge") to have returned {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"rsyslog", "service_name"=>"rsyslog", "config_file_path"=>"/etc/rsyslog.conf", "config_dir_path"=>"/etc/rsyslog.d", "conf_dir_path"=>"/etc/rsyslog.d", "data_dir_path"=>"/var/log", "init_file_path"=>"/etc/sysconfig/rsyslog", "udp_port"=>"69", "pid_file_path"=>"/var/run/rsyslog.pid", "log_file_path"=>"/var/log/messages", "process_name"=>"rsyslogd", "process_user"=>"root", "process_group"=>"root", "version_command"=>"rsyslogd -v"} instead of {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L24
tp_lookup on redhat-8-x86_64 with app openssh is expected to run tp_lookup("openssh", "settings", "tinydata", "merge") and return {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0600", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"openssh-server", "service_name"=>"sshd", "config_file_path"=>"/etc/ssh/sshd_config", "config_dir_path"=>"/etc/ssh", "tcp_port"=>"22", "pid_file_path"=>"/var/run/sshd.pid", "log_file_path"=>"/var/log/messages", "process_name"=>"sshd", "process_user"=>"root", "process_group"=>"root", "nodaemon_args"=>"-D", "validate_cmd"=>"sshd -t -f %", "version_command"=>"ssh -V", "config_file_format"=>"inifile"}
Failure/Error: it { is_expected.to run.with_params(app,'settings','tinydata','merge').and_return(appdata) }
expected tp_lookup("openssh", "settings", "tinydata", "merge") to have returned {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0600", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"openssh-server", "service_name"=>"sshd", "config_file_path"=>"/etc/ssh/sshd_config", "config_dir_path"=>"/etc/ssh", "tcp_port"=>"22", "pid_file_path"=>"/var/run/sshd.pid", "log_file_path"=>"/var/log/messages", "process_name"=>"sshd", "process_user"=>"root", "process_group"=>"root", "nodaemon_args"=>"-D", "validate_cmd"=>"sshd -t -f %", "version_command"=>"ssh -V", "config_file_format"=>"inifile"} instead of {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0600", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>false, "install_method"=>"packa
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L24
tp_lookup on redhat-8-x86_64 with app elasticsearch is expected to run tp_lookup("elasticsearch", "settings", "tinydata", "merge") and return {"upstream_repo"=>true, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"elasticsearch", "service_name"=>"elasticsearch", "config_file_path"=>"/etc/elasticsearch/elasticsearch.yml", "config_file_format"=>"yaml", "config_dir_path"=>"/etc/elasticsearch", "pid_file_path"=>"/var/run/elasticsearch.pid", "log_file_path"=>"/var/log/elasticsearch/elasticsearch.log", "log_dir_path"=>"/var/log/elasticsearch", "data_dir_path"=>"/var/lib/elasticsearch", "process_name"=>"java", "process_extra_name"=>"elasticsearch", "process_user"=>"elasticsearch", "process_group"=>"elasticsearch", "tcp_port"=>"9200", "init_file_path"=>"/etc/sysconfig/elasticsearch", "tp_prerequisites"=>{"elastic_repo"=>{}}}
Failure/Error: it { is_expected.to run.with_params(app,'settings','tinydata','merge').and_return(appdata) }
expected tp_lookup("elasticsearch", "settings", "tinydata", "merge") to have returned {"upstream_repo"=>true, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"elasticsearch", "service_name"=>"elasticsearch", "config_file_path"=>"/etc/elasticsearch/elasticsearch.yml", "config_file_format"=>"yaml", "config_dir_path"=>"/etc/elasticsearch", "pid_file_path"=>"/var/run/elasticsearch.pid", "log_file_path"=>"/var/log/elasticsearch/elasticsearch.log", "log_dir_path"=>"/var/log/elasticsearch", "data_dir_path"=>"/var/lib/elasticsearch", "process_name"=>"java", "process_extra_name"=>"elasticsearch", "process_user"=>"elasticsearch", "process_group"=>"elasticsearch", "tcp_port"=>"9200", "init_file_pa
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L24
tp_lookup on redhat-8-x86_64 with app sysdig is expected to run tp_lookup("sysdig", "settings", "tinydata", "merge") and return {"upstream_repo"=>true, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"sysdig", "repo_url"=>"http://download.draios.com/stable/rpm/$basearch", "key"=>"F1C3BD80", "key_url"=>"https://s3.amazonaws.com/download.draios.com/DRAIOS-GPG-KEY.public", "tp_prerequisites"=>["dkms"]}
Failure/Error: it { is_expected.to run.with_params(app,'settings','tinydata','merge').and_return(appdata) }
expected tp_lookup("sysdig", "settings", "tinydata", "merge") to have returned {"upstream_repo"=>true, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"sysdig", "repo_url"=>"http://download.draios.com/stable/rpm/$basearch", "key"=>"F1C3BD80", "key_url"=>"https://s3.amazonaws.com/download.draios.com/DRAIOS-GPG-KEY.public", "tp_prerequisites"=>["dkms"]} instead of {"upstream_repo"=>true, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>false, "install_method"=>"package", "packages"=>{"devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owne
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L24
tp_lookup on redhat-8-x86_64 with app icinga2 is expected to run tp_lookup("icinga2", "settings", "tinydata", "merge") and return {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"icinga", "config_file_group"=>"root", "config_file_mode"=>"0640", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"icinga2", "service_name"=>"icinga2", "config_file_path"=>"/etc/icinga2/icinga2.conf", "config_dir_path"=>"/etc/icinga2", "conf_dir_path"=>"/etc/icinga2/conf.d", "features_dir_path"=>"/etc/icinga2/features-enabled", "pid_file_path"=>"/var/run/icinga2/icinga2.pid", "log_file_path"=>["/var/log/icinga2/icinga2.log", "/var/log/icinga2/error.log"], "log_dir_path"=>"/var/log/icinga2", "process_name"=>"icinga2", "process_user"=>"icinga", "process_group"=>"icinga", "init_file_path"=>"/etc/sysconfig/icinga2", "repo_package_name"=>"icinga-rpm-release", "tp_prerequisites"=>["epel"]}
Failure/Error: it { is_expected.to run.with_params(app,'settings','tinydata','merge').and_return(appdata) }
expected tp_lookup("icinga2", "settings", "tinydata", "merge") to have returned {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"icinga", "config_file_group"=>"root", "config_file_mode"=>"0640", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"rpm", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"rpm"}}, "package_name"=>"icinga2", "service_name"=>"icinga2", "config_file_path"=>"/etc/icinga2/icinga2.conf", "config_dir_path"=>"/etc/icinga2", "conf_dir_path"=>"/etc/icinga2/conf.d", "features_dir_path"=>"/etc/icinga2/features-enabled", "pid_file_path"=>"/var/run/icinga2/icinga2.pid", "log_file_path"=>["/var/log/icinga2/icinga2.log", "/var/log/icinga2/error.log"], "log_dir_path"=>"/var/log/icinga2", "process_name"=>"icinga2", "process_user"=>"icinga", "process_group"=>"icinga", "init_file_path"=>"/etc/sysconfig/icinga2", "repo_package_name"=>"icinga-rpm-release", "tp_prerequisites"=>["epel"]} instead
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L16
tp_lookup on ubuntu-22.04-x86_64 the tp_lookup function should raise a ParseError if there are less than 3 arguments
Failure/Error: expect { scope.function_tp_lookup(["1"]) }.to( raise_error(Puppet::Error))
expected Puppet::Error, got #<NoMethodError: undefined method `scope' for PuppetlabsSpec::PuppetInternals:Module> with backtrace:
# ./spec/functions/tp_lookup_spec.rb:10:in `block (5 levels) in <top (required)>'
# ./spec/functions/tp_lookup_spec.rb:17:in `block (6 levels) in <top (required)>'
# ./spec/functions/tp_lookup_spec.rb:17:in `block (5 levels) in <top (required)>'
|
Unit tests:
spec/functions/tp_lookup_spec.rb#L24
tp_lookup on ubuntu-22.04-x86_64 with app rsyslog is expected to run tp_lookup("rsyslog", "settings", "tinydata", "merge") and return {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"dpkg", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"dpkg"}}, "package_name"=>"rsyslog", "service_name"=>"rsyslog", "config_file_path"=>"/etc/rsyslog.conf", "config_dir_path"=>"/etc/rsyslog.d", "conf_dir_path"=>"/etc/rsyslog.d", "data_dir_path"=>"/var/log", "init_file_path"=>"/etc/default/rsyslog", "udp_port"=>"69", "pid_file_path"=>"/var/run/rsyslogd.pid", "log_file_path"=>"/var/log/syslog", "process_name"=>"rsyslogd", "process_user"=>"root", "process_group"=>"root", "version_command"=>"rsyslogd -v"}
Failure/Error: it { is_expected.to run.with_params(app,'settings','tinydata','merge').and_return(appdata) }
expected tp_lookup("rsyslog", "settings", "tinydata", "merge") to have returned {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purge"=>false, "config_dir_recurse"=>true, "install_method"=>"package", "packages"=>{"main"=>{"ensure"=>"present", "source"=>nil, "install_options"=>[], "params"=>{}, "providers"=>{}, "manage"=>true}, "devel"=>{"name"=>"$TITLE-devel", "ensure"=>"present", "manage"=>false}, "doc"=>{"name"=>"$TITLE-doc", "ensure"=>"present", "manage"=>false}, "libs"=>{"name"=>"$TITLE-libs", "ensure"=>"present", "manage"=>false}}, "services"=>{"main"=>{"process_user"=>"root", "process_group"=>"root", "ensure"=>"running", "enable"=>true, "params"=>{}}}, "files"=>{"config"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644"}, "init"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile"}, "systemd"=>{"owner"=>"root", "group"=>"root", "mode"=>"0644", "format"=>"inifile_with_stanzas"}}, "dirs"=>{"config"=>{"owner"=>"root", "group"=>"root"}, "conf"=>{"owner"=>"root", "group"=>"root"}}, "repo_package_provider"=>"dpkg", "init_system"=>"systemd", "repos"=>{"default"=>{"package_provider"=>"dpkg"}}, "package_name"=>"rsyslog", "service_name"=>"rsyslog", "config_file_path"=>"/etc/rsyslog.conf", "config_dir_path"=>"/etc/rsyslog.d", "conf_dir_path"=>"/etc/rsyslog.d", "data_dir_path"=>"/var/log", "init_file_path"=>"/etc/default/rsyslog", "udp_port"=>"69", "pid_file_path"=>"/var/run/rsyslogd.pid", "log_file_path"=>"/var/log/syslog", "process_name"=>"rsyslogd", "process_user"=>"root", "process_group"=>"root", "version_command"=>"rsyslogd -v"} instead of {"upstream_repo"=>false, "package_ensure"=>"present", "service_ensure"=>"running", "service_enable"=>true, "config_file_owner"=>"root", "config_file_group"=>"root", "config_file_mode"=>"0644", "config_dir_owner"=>"root", "config_dir_group"=>"root", "config_dir_mode"=>"0644", "config_dir_purg
|
Static code analysys:
manifests/cli.pp#L7
lookup used to set the default value of a parameter (check: lookup_in_parameter)
|
Static code analysys:
manifests/create_dir.pp#L49
indentation of => is not properly aligned (expected in column 17, but found it in column 19) (check: arrow_alignment)
|
Static code analysys:
manifests/create_dir.pp#L50
indentation of => is not properly aligned (expected in column 17, but found it in column 19) (check: arrow_alignment)
|
Static code analysys:
manifests/create_dir.pp#L51
indentation of => is not properly aligned (expected in column 17, but found it in column 19) (check: arrow_alignment)
|
Static code analysys:
manifests/install.pp#L290
indentation of => is not properly aligned (expected in column 23, but found it in column 27) (check: arrow_alignment)
|
Static code analysys:
manifests/install.pp#L190
lookup used to set the default value of a parameter (check: lookup_in_parameter)
|
Static code analysys:
manifests/install/package.pp#L348
top-scope variable being used without an explicit namespace (check: variable_scope)
|
Static code analysys:
manifests/install/package.pp#L107
lookup used to set the default value of a parameter (check: lookup_in_parameter)
|
Static code analysys:
manifests/repo.pp#L32
lookup used to set the default value of a parameter (check: lookup_in_parameter)
|
Static code analysys:
manifests/setup.pp#L10
Optional defined type parameter doesn't have a default (check: optional_default)
|
Unit tests:
spec/defines/puppi_spec.rb#L8
tp::puppi on centos-7-x86_64
Skipped: No reason given
|
Unit tests:
spec/defines/puppi_spec.rb#L8
tp::puppi on ubuntu-16.04-x86_64
Skipped: No reason given
|