Skip to content

Shorten the conditionals in apt::source #315

Shorten the conditionals in apt::source

Shorten the conditionals in apt::source #315

Triggered via pull request January 6, 2025 13:25
Status Failure
Total duration 1m 42s
Artifacts

ci.yml

on: pull_request
Spec  /  Setup Test Matrix
25s
Spec / Setup Test Matrix
Matrix: Spec / spec
Acceptance  /  Setup Test Matrix
Acceptance / Setup Test Matrix
Matrix: Acceptance / acceptance
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 3 warnings
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L437
apt::source deb822 sources basic deb822 source is expected to contain Apt::Setting[sources-my_source] with notify_update => true Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(true) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L455
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with notify_update => false Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(false) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L456
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Enabled: yes/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Enabled: yes}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L457
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Types: deb deb-src/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Types: deb deb-src}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L458
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /URIs: http:\/\/fr.debian.org\/debian http:\/\/de.debian.org\/debian/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{URIs: http://fr.debian.org/debian http://de.debian.org/debian}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L459
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Suites: stable stable-updates stable-backports/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Suites: stable stable-updates stable-backports}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L460
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Components: main contrib non-free/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Components: main contrib non-free}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L461
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Architectures: amd64 i386/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Architectures: amd64 i386}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/defines/source_spec.rb#L462
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Trusted: yes/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Trusted: yes}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az1490-192.fv54ws4un3tuxk2tgyakhz5fka.ex.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)
Process completed with exit code 1.
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L437
apt::source deb822 sources basic deb822 source is expected to contain Apt::Setting[sources-my_source] with notify_update => true Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(true) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L455
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with notify_update => false Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_notify_update(false) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L456
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Enabled: yes/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Enabled: yes}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L457
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Types: deb deb-src/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Types: deb deb-src}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L458
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /URIs: http:\/\/fr.debian.org\/debian http:\/\/de.debian.org\/debian/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{URIs: http://fr.debian.org/debian http://de.debian.org/debian}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L459
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Suites: stable stable-updates stable-backports/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Suites: stable stable-updates stable-backports}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L460
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Components: main contrib non-free/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Components: main contrib non-free}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L461
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Architectures: amd64 i386/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Architectures: amd64 i386}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7): spec/defines/source_spec.rb#L462
apt::source deb822 sources complex deb822 source is expected to contain Apt::Setting[sources-my_source] with content =~ /Trusted: yes/ Failure/Error: it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Trusted: yes}) } Puppet::PreformattedError: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, lambda: parameter 'uris' index 0 expects a String value, got Tuple (file: /home/runner/work/puppetlabs-apt/puppetlabs-apt/spec/fixtures/modules/apt/manifests/source.pp, line: 327, column: 29) (line: 3) on node fv-az801-883.jplelvhbra5e3n4vadtwxrmqqe.phxx.internal.cloudapp.net
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)
Process completed with exit code 1.
Spec / Setup Test Matrix
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636