Skip to content

install packages only if not already defined #68

install packages only if not already defined

install packages only if not already defined #68

Triggered via pull request October 23, 2024 19:54
Status Failure
Total duration 1m 43s
Artifacts

puppet.yml

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

Annotations

20 errors
Puppet / 8 (Ruby 3.2): spec/defines/share_spec.rb#L27
samba::share on centos-6-x86_64 with boolean true as a value is expected to contain Augeas[APPS-section] with incl => "/etc/samba/smb.conf", lens => "Samba.lns", context => "/files/etc/samba/smb.conf" and changes => "set target[. = 'APPS'] 'APPS'" Failure/Error: is_expected.to contain_augeas('APPS-section').with( 'incl' => '/etc/samba/smb.conf', 'lens' => 'Samba.lns', 'context' => '/files/etc/samba/smb.conf', 'changes' => 'set target[. = \'APPS\'] \'APPS\'', ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/share_spec.rb#L36
samba::share on centos-6-x86_64 with boolean true as a value is expected to contain Samba::Option[APPS-comment] with key => "comment" and value => "Apps" Failure/Error: is_expected.to contain_samba__option('APPS-comment').with_key('comment').with_value('Apps') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/classes/samba_spec.rb#L10
samba on centos-6-x86_64 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: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/classes/contains_spec.rb#L11
samba on centos-6-x86_64 is expected to compile into a catalogue without dependency cycles Failure/Error: is_expected.to compile.with_all_deps error during compilation: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/share_spec.rb#L45
samba::share on centos-6-x86_64 with boolean true as a value is expected to contain exactly 67 Samba::Option resources Failure/Error: is_expected.to have_samba__option_resource_count(67) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/classes/samba_spec.rb#L21
samba on centos-6-x86_64 samba::install should allow package ensure to be overridden is expected to contain Package[samba] with ensure => "latest" Failure/Error: is_expected.to contain_package('samba').with_ensure('latest') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/classes/contains_spec.rb#L16
samba on centos-6-x86_64 Testing the dependencies between the classes is expected to contain Class[samba::install] Failure/Error: it { is_expected.to contain_class('samba::install') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/defines/share_spec.rb#L27
samba::share on redhat-6-x86_64 with boolean true as a value is expected to contain Augeas[APPS-section] with incl => "/etc/samba/smb.conf", lens => "Samba.lns", context => "/files/etc/samba/smb.conf" and changes => "set target[. = 'APPS'] 'APPS'" Failure/Error: is_expected.to contain_augeas('APPS-section').with( 'incl' => '/etc/samba/smb.conf', 'lens' => 'Samba.lns', 'context' => '/files/etc/samba/smb.conf', 'changes' => 'set target[. = \'APPS\'] \'APPS\'', ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/classes/contains_spec.rb#L17
samba on centos-6-x86_64 Testing the dependencies between the classes is expected to contain Class[samba::config] Failure/Error: it { is_expected.to contain_class('samba::config') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 8 (Ruby 3.2): spec/classes/samba_spec.rb#L38
samba on centos-6-x86_64 samba::install should allow the package name to be overridden is expected to contain Package[samba-server] with ensure => "present" Failure/Error: is_expected.to contain_package('samba-server').with_ensure('present') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1016-35.pv3vitign2bulj5h5vrau5ekvd.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/share_spec.rb#L27
samba::share on almalinux-8-x86_64 with boolean true as a value is expected to contain Augeas[APPS-section] with incl => "/etc/samba/smb.conf", lens => "Samba.lns", context => "/files/etc/samba/smb.conf" and changes => "set target[. = 'APPS'] 'APPS'" Failure/Error: is_expected.to contain_augeas('APPS-section').with( 'incl' => '/etc/samba/smb.conf', 'lens' => 'Samba.lns', 'context' => '/files/etc/samba/smb.conf', 'changes' => 'set target[. = \'APPS\'] \'APPS\'', ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/classes/samba_spec.rb#L10
samba on almalinux-8-x86_64 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: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/share_spec.rb#L36
samba::share on almalinux-8-x86_64 with boolean true as a value is expected to contain Samba::Option[APPS-comment] with key => "comment" and value => "Apps" Failure/Error: is_expected.to contain_samba__option('APPS-comment').with_key('comment').with_value('Apps') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/classes/samba_spec.rb#L21
samba on almalinux-8-x86_64 samba::install should allow package ensure to be overridden is expected to contain Package[samba] with ensure => "latest" Failure/Error: is_expected.to contain_package('samba').with_ensure('latest') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/share_spec.rb#L45
samba::share on almalinux-8-x86_64 with boolean true as a value is expected to contain exactly 67 Samba::Option resources Failure/Error: is_expected.to have_samba__option_resource_count(67) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/classes/samba_spec.rb#L38
samba on almalinux-8-x86_64 samba::install should allow the package name to be overridden is expected to contain Package[samba-server] with ensure => "present" Failure/Error: is_expected.to contain_package('samba-server').with_ensure('present') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/share_spec.rb#L27
samba::share on ubuntu-22.04-x86_64 with boolean true as a value is expected to contain Augeas[APPS-section] with incl => "/etc/samba/smb.conf", lens => "Samba.lns", context => "/files/etc/samba/smb.conf" and changes => "set target[. = 'APPS'] 'APPS'" Failure/Error: is_expected.to contain_augeas('APPS-section').with( 'incl' => '/etc/samba/smb.conf', 'lens' => 'Samba.lns', 'context' => '/files/etc/samba/smb.conf', 'changes' => 'set target[. = \'APPS\'] \'APPS\'', ) Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/classes/contains_spec.rb#L11
samba on almalinux-8-x86_64 is expected to compile into a catalogue without dependency cycles Failure/Error: is_expected.to compile.with_all_deps error during compilation: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/defines/share_spec.rb#L36
samba::share on ubuntu-22.04-x86_64 with boolean true as a value is expected to contain Samba::Option[APPS-comment] with key => "comment" and value => "Apps" Failure/Error: is_expected.to contain_samba__option('APPS-comment').with_key('comment').with_value('Apps') Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net
Puppet / 7 (Ruby 2.7): spec/classes/contains_spec.rb#L16
samba on almalinux-8-x86_64 Testing the dependencies between the classes is expected to contain Class[samba::install] Failure/Error: it { is_expected.to contain_class('samba::install') } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Function Call, 'defined' parameter 'vals' expects a value of type String, Type[CatalogEntry], or Type[Type], got Tuple (file: /home/runner/work/puppet-samba/puppet-samba/spec/fixtures/modules/samba/manifests/install.pp, line: 7, column: 12) on node fv-az1780-340.agtqprkliaoehfcdqtdennvexe.cx.internal.cloudapp.net