Skip to content

Devel

Devel #127

Triggered via pull request October 19, 2023 21:16
@alvagantealvagante
synchronize #114
devel
Status Success
Total duration 6m 29s
Artifacts

pr.yml

on: pull_request
Static code analysys
26s
Static code analysys
Unit tests
6m 18s
Unit tests
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 4 warnings
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app rsyslog with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_rsyslog] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_rsyslog" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_rsyslog] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app openssh with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_openssh] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_openssh" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_openssh] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app elasticsearch with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_elasticsearch] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_elasticsearch" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_elasticsearch] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app sysdig with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_sysdig] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_sysdig" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_sysdig] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app rsyslog with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_rsyslog] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_rsyslog" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_rsyslog] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app openssh with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_openssh] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_openssh" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_openssh] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app elasticsearch with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_elasticsearch] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_elasticsearch" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_elasticsearch] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app sysdig with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_sysdig] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_sysdig" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_sysdig] with ensure set to "present" but it is set to "file"
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)>' # bin/rspec:27:in `load' # bin/rspec:27:in `<main>'
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
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app rsyslog with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_rsyslog] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_rsyslog" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_rsyslog] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app openssh with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_openssh] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_openssh" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_openssh] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app elasticsearch with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_elasticsearch] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_elasticsearch" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_elasticsearch] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on centos-7-x86_64 with app sysdig with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_sysdig] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_sysdig" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_sysdig] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app rsyslog with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_rsyslog] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_rsyslog" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_rsyslog] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app openssh with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_openssh] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_openssh" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_openssh] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app elasticsearch with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_elasticsearch] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_elasticsearch" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_elasticsearch] with ensure set to "present" but it is set to "file"
Unit tests: spec/defines/stdmod_spec.rb#L79
tp::stdmod on ubuntu-16.04-x86_64 with app sysdig with debug => true and debug_dir => /var/tmp is expected to contain File[tp_stdmod_debug_sysdig] with ensure => "present" and path => "/var/tmp/tp_stdmod_debug_sysdig" Failure/Error: it { is_expected.to contain_file("tp_stdmod_debug_#{app}").with('ensure' => 'present', 'path' => "/var/tmp/tp_stdmod_debug_#{app}") } expected that the catalogue would contain File[tp_stdmod_debug_sysdig] with ensure set to "present" but it is set to "file"
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)>' # bin/rspec:27:in `load' # bin/rspec:27:in `<main>'
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/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
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