Skip to content

Commit

Permalink
Add test for pkg package type in Nexus class
Browse files Browse the repository at this point in the history
  • Loading branch information
zipkid committed Dec 6, 2023
1 parent b505974 commit 39dd9e5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,21 @@
is_expected.not_to contain_user('nexus')
end
end

context 'using pkg package type' do
let(:params) do
{
'package_type' => 'pkg',
}
end

it { is_expected.to compile }
it {
is_expected.to contain_package('nexus').with(
'ensure' => 'installed',
)
}
end
end
end
end
Expand Down

0 comments on commit 39dd9e5

Please sign in to comment.