Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 manifests/source.pp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
'enabled' => $enabled ? { true => 'yes', false => 'no' },
'architectures' => $_architecture,
'allow_insecure' => $allow_insecure ? { true => 'yes', false => 'no', default => undef },
'repo_trusted' => $allow_unsigned ? { true => 'yes', false => 'no', default => undef },
'repo_trusted' => $allow_unsigned ? { true => 'yes', false => undef, default => undef },
'check_valid_until' => $check_valid_until ? { true => 'yes', false => 'no', default => undef },
'signed_by' => $keyring,
}
Expand Down
14 changes: 14 additions & 0 deletions spec/defines/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,20 @@
it { is_expected.to contain_apt__setting("sources-#{title}").with_content(%r{Trusted: yes}) }
end

context 'deb822 source with allow_unsigned false' do
let :params do
super().merge(
{
location: ['http://debian.mirror.iweb.ca/debian/'],
repos: ['main'],
allow_unsigned: false,
},
)
end

it { is_expected.to contain_apt__setting("sources-#{title}").without_content(%r{Trusted:}) }
end

context '.list backwards compatibility' do
let :params do
super().merge(
Expand Down
Loading