Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
fb0a41c
update apt source to deb822 format
alaunay Jan 15, 2026
085cab8
comply with lint style
alaunay Jan 15, 2026
9bc80ca
Error: there should be a single space or single newline after an open…
alaunay Jan 15, 2026
fb3c17b
puppetlabs-apt expects priority Data type: Variant[Integer, String[1]…
alaunay Jan 15, 2026
a527091
no comma
alaunay Jan 15, 2026
cc66d1c
replace pin with priority
alaunay Jan 15, 2026
b8dcd25
Revert "puppetlabs-apt expects priority Data type: Variant[Integer, S…
alaunay Jan 15, 2026
e8ce89f
use priority instead of pin
alaunay Jan 15, 2026
6f30343
location in deb822 is an array
alaunay Jan 15, 2026
1d1afd0
use priority instead of pin
alaunay Jan 15, 2026
e51e61a
check priority in apt::pin ressource
alaunay Jan 15, 2026
b85f265
use repo_priority, repo_pin is deprecated
alaunay Jan 15, 2026
95abe9f
force high prio for checks
alaunay Jan 15, 2026
aea9912
force nodesource version
alaunay Jan 15, 2026
a3536b5
Revert "force nodesource version"
alaunay Jan 16, 2026
3f8367d
install source too
alaunay Jan 16, 2026
125f49a
correct check for deb13 (include nodejs 20)
alaunay Jan 16, 2026
89a0da1
wrong indent
alaunay Jan 16, 2026
5c63f08
install npm
alaunay Jan 16, 2026
9c203c4
install npm
alaunay Jan 16, 2026
e4bea3b
don't purge libnode, breaks the test
alaunay Jan 16, 2026
0687c58
don't clean
alaunay Jan 16, 2026
131cde4
stop idempotent
alaunay Jan 16, 2026
1395772
git rubocop happy
alaunay Jan 16, 2026
9108160
add debug
alaunay Jan 16, 2026
4852028
reset changes
alaunay Jan 17, 2026
2163885
reset priorities
alaunay Jan 17, 2026
21fc3df
rename repo_pin to repo_priority
alaunay Jan 17, 2026
b561c26
force npm install and add debug
alaunay Jan 17, 2026
d9554c2
force npm requirement to check npm
alaunay Jan 17, 2026
723bb46
force add libnode-dev
alaunay Jan 17, 2026
430c3fb
drop debug, add libnode-dev install
alaunay Jan 17, 2026
6e5efcf
Revert "reset priorities"
alaunay Jan 17, 2026
564bdfc
allow downgrade
alaunay Jan 17, 2026
3fde70b
deb13 includes node20
alaunay Jan 17, 2026
38290ac
outsmart rubocop
alaunay Jan 17, 2026
0ea2a61
force bigger repo prio
alaunay Jan 17, 2026
1012177
use 990, to not get a downgrade
alaunay Jan 17, 2026
4fb31a5
define prio only for debizan
alaunay Jan 17, 2026
7aa9d0c
up repo priority
alaunay Jan 17, 2026
6f8c5a5
upgrade basic specs
alaunay Jan 17, 2026
54f299c
pff
alaunay Jan 17, 2026
3d74ca5
one more x
alaunay Jan 17, 2026
f2f8650
use rtprio version
alaunay Jan 17, 2026
906f522
forgot one
alaunay Jan 17, 2026
5479cbf
clean pin and keyring
alaunay Jan 18, 2026
84ae55f
priority should be absent for RH based systems
alaunay Jan 18, 2026
d37280b
lower prio for debian version, purge legacy
alaunay Jan 18, 2026
75a04d0
yumrepo needs absent
alaunay Jan 18, 2026
770d0df
workaround https://github.com/puppetlabs/puppetlabs-apt/issues/1245
alaunay Jan 18, 2026
57d1277
no need for deb-src
alaunay Jan 18, 2026
8fc6213
be consistent with nodejs-debug
alaunay Jan 18, 2026
acb8dc0
go back to head branch file
alaunay Jan 18, 2026
85e2ba6
force priority to be 990 on debian
alaunay Jan 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class { 'nodejs':
### Forcing the installation of NodeSource packages over native packages

When the native package version and NodeSource version are the same, you may
need to use `repo_pin` or `repo_priority` (depending on your operating system).
need to use `repo_priority` (depending on your operating system).
This ensures that the version in the NodeSource repository takes precedence
when Puppet invokes Apt/Yum.

Expand Down
1 change: 0 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Optional[Hash] $npmrc_config = $nodejs::params::npmrc_config,
$repo_class = $nodejs::params::repo_class,
$repo_ensure = $nodejs::params::repo_ensure,
$repo_pin = $nodejs::params::repo_pin,
$repo_priority = $nodejs::params::repo_priority,
$repo_proxy = $nodejs::params::repo_proxy,
$repo_proxy_password = $nodejs::params::repo_proxy_password,
Expand Down
4 changes: 2 additions & 2 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Package { provider => $nodejs::package_provider }

# nodejs
if $nodejs::manage_nodejs_package {
if $nodejs::manage_nodejs_package and $nodejs::nodejs_package_name {
package { $nodejs::nodejs_package_name:
ensure => $nodejs::nodejs_package_ensure,
tag => 'nodesource_repo',
Expand All @@ -36,7 +36,7 @@
}

# nodejs-debug
if $nodejs::nodejs_debug_package_name {
if $nodejs::manage_nodejs_package and $nodejs::nodejs_debug_package_name {
package { $nodejs::nodejs_debug_package_name:
ensure => $nodejs::nodejs_debug_package_ensure,
tag => 'nodesource_repo',
Expand Down
3 changes: 1 addition & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
$nodejs_debug_package_ensure = 'absent'
$nodejs_package_ensure = 'installed'
$repo_ensure = 'present'
$repo_pin = undef
$repo_priority = 'absent'
$repo_priority = ($facts['os']['family'] == 'Debian') ? { true => '990', default => 'absent' }
$repo_proxy = 'absent'
$repo_proxy_password = 'absent'
$repo_proxy_username = 'absent'
Expand Down
1 change: 0 additions & 1 deletion manifests/repo/nodesource.pp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# PRIVATE CLASS: Do not use directly
class nodejs::repo::nodesource {
$ensure = $nodejs::repo_ensure
$pin = $nodejs::repo_pin
$priority = $nodejs::repo_priority
$proxy = $nodejs::repo_proxy
$proxy_password = $nodejs::repo_proxy_password
Expand Down
40 changes: 31 additions & 9 deletions manifests/repo/nodesource/apt.pp
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
# PRIVATE CLASS: Do not use directly.
class nodejs::repo::nodesource::apt {
$ensure = $nodejs::repo::nodesource::ensure
$pin = $nodejs::repo::nodesource::pin
$priority = $nodejs::repo::nodesource::priority
$url_suffix = $nodejs::repo::nodesource::url_suffix

include apt

if ($ensure != 'absent') {
apt::keyring { 'nodesource':
source => 'https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key',
dir => '/usr/share/keyrings',
filename => 'nodesource-repo.gpg.key.asc',
}

apt::source { 'nodesource':
key => {
'name' => 'nodesource-repo.gpg.key.asc',
'source' => 'https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key',
},
location => "https://deb.nodesource.com/node_${url_suffix}",
pin => $pin,
release => 'nodistro',
repos => 'main',
source_format => 'sources',
location => ["https://deb.nodesource.com/node_${url_suffix}",],
keyring => '/usr/share/keyrings/nodesource-repo.gpg.key.asc',
release => ['nodistro',],
repos => ['main',],
types => ['deb',],
require => Apt::Keyring['nodesource'],
}

apt::pin { 'nodesource':
origin => 'deb.nodesource.com',
priority => $priority,
}

Apt::Source['nodesource'] -> Package<| tag == 'nodesource_repo' |>
Expand All @@ -26,5 +36,17 @@
apt::source { 'nodesource':
ensure => 'absent',
}
apt::pin { 'nodesource':
ensure => 'absent',
}
apt::keyring { 'nodesource':
ensure => 'absent',
dir => '/usr/share/keyrings',
filename => 'nodesource-repo.gpg.key.asc',
}
file { '/etc/apt/sources.list.d/nodesource.sources':
ensure => 'absent',
notify => Class['Apt::Update'],
}
}
}
15 changes: 8 additions & 7 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,36 @@

# Debian 12 contains NodeJS 18, when we test 16 and 18, we need to force the nodesource version
# as Debians versions *can* be newer
repo_pin =
if %w[16 18].include?(nodejs_version) && fact('os.family') == 'Debian' && %w[12 13].include?(fact('os.release.major'))
'1000'
repo_priority =
if fact('os.family') == 'Debian'
'990'
else
'undef'
'absent'
end

it_behaves_like 'an idempotent resource' do
let(:manifest) do
<<-PUPPET
class { 'nodejs':
repo_version => '#{nodejs_version}',
repo_pin => #{repo_pin},
repo_priority => '#{repo_priority}',
}
PUPPET
end
end

describe package('nodejs') do
it { is_expected.to be_installed }

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

Check warning on line 64 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" Skipped: NodeJS 16 is not supported on EL9

it 'comes from the expected source' do

Check warning on line 66 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9

Check warning on line 66 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9

Check warning on line 66 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9

Check warning on line 66 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Package "nodejs" comes from the expected source Skipped: NodeJS 16 is not supported on EL9
pkg_output = shell(pkg_cmd)
expect(pkg_output.stdout).to match 'nodesource'
end
end

describe command('node --version') do
its(:exit_status) { is_expected.to eq 0 }

Check warning on line 73 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9

Check warning on line 73 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9

Check warning on line 73 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9

Check warning on line 73 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" exit_status Skipped: NodeJS 16 is not supported on EL9
its(:stdout) { is_expected.to match(%r{^v#{nodejs_version}}) }

Check warning on line 74 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9

Check warning on line 74 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9

Check warning on line 74 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9

Check warning on line 74 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs explicitly using version 16 from nodesource Command "node --version" stdout Skipped: NodeJS 16 is not supported on EL9
end
end

Expand Down Expand Up @@ -105,7 +105,7 @@
nodejs-devel
].each do |pkg|
describe package(pkg) do
it do

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 16

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - AlmaLinux 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - Rocky 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 24

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - CentOS 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 20

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 22

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed

Check warning on line 108 in spec/acceptance/class_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / OpenVox 8 - OracleLinux 9 - NodeJS 18

nodejs RedHat with repo_class => epel Package "nodejs-devel" is expected to be installed Failure/Error: is_expected.to be_installed expected Package "nodejs-devel" to be installed
pending('nodejs-devel and nodejs not installable together on EL9') if fact('os.release.major') == '9' && pkg == 'nodejs-devel'
is_expected.to be_installed
end
Expand Down Expand Up @@ -173,6 +173,7 @@

%w[
libnode-dev
nodejs
npm
].each do |pkg|
describe package(pkg) do
Expand Down Expand Up @@ -201,7 +202,7 @@

describe 'npm config' do
it 'contains the global_config_entry secret' do
npm_output = shell('cat $(/usr/bin/npm config get globalconfig)')
npm_output = shell('cat $(/usr/bin/npm config get globalconfig || echo /dev/null)')
expect(npm_output.stdout).to match '//path.to.registry/:_authToken="cGFzc3dvcmQ="'
end
end
Expand All @@ -227,7 +228,7 @@

describe 'npm config' do
it 'contains the global_config_entry secret' do
npm_output = shell('cat $(/usr/bin/npm config get globalconfig)')
npm_output = shell('cat $(/usr/bin/npm config get globalconfig || echo /dev/null)')
expect(npm_output.stdout).to match '//path.to.registry/:_authToken=cGFzc3dvcmQ'
end
end
Expand Down
18 changes: 9 additions & 9 deletions spec/classes/nodejs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,23 +84,23 @@
end
end

context 'and repo_pin set to 10' do
context 'and repo_priority set to 10' do
let :params do
default_params.merge!(repo_pin: '10')
default_params.merge!(repo_priority: '10')
end

it 'the repo apt::source resource should contain pin = 10' do
is_expected.to contain_apt__source('nodesource').with('pin' => '10')
is_expected.to contain_apt__pin('nodesource').with('priority' => '10')
end
end

context 'and repo_pin not set' do
context 'and repo_priority not set' do
let :params do
default_params.merge!(repo_pin: :undef)
default_params.merge!(repo_priority: :undef)
end

it 'the repo apt::source resource should contain pin = undef' do
is_expected.to contain_apt__source('nodesource').with('pin' => nil)
it 'the repo apt::source resource should contain priority = 990' do
is_expected.to contain_apt__pin('nodesource').with('priority' => 990)
end
end

Expand All @@ -109,8 +109,8 @@
default_params.merge!(repo_version: '9')
end

it 'the repo apt::source resource should contain location = https://deb.nodesource.com/node_9.x' do
is_expected.to contain_apt__source('nodesource').with('location' => 'https://deb.nodesource.com/node_9.x')
it 'the repo apt::source resource should contain location = [https://deb.nodesource.com/node_9.x]' do
is_expected.to contain_apt__source('nodesource').with('location' => ['https://deb.nodesource.com/node_9.x'])
end
end

Expand Down
Loading