You can use rpec puppet expectations for any resource type, so something
like this should work:
it { is_expected.to contain_apt__source('nginx').with( ... }
On Thursday, May 3, 2018 at 10:12:33 AM UTC+2, Joaquin Menchaca wrote:
>
>
>
> I am using nginx package from nginx folks. I used the apt::source like
> this:
>
>
>
> The documentation is fairly decent for standard resources like package and
> stuff, e.g.
>
> it { is_expected.to contain_package('nginx').with(ensure: 'present') }
>
> I am wondering how I could go about testing this, adding to my
> spec/classes/install_spec.rb. for the apt::source in particular. I haven't
> found anything on this yet.
>
> I scaffolded my classes and spec/ structure using PDK.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/04967331-7b1b-47a1-b863-45dda4d3ea29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.