Thank you so much.  Worked like a charm. 

<https://lh3.googleusercontent.com/--sfkKEiwc2A/WutnGn9_POI/AAAAAAABTLM/sHDOdF_spmYsD4hg6EyI-D_70KrZZKzeACLcBGAs/s1600/nginx_spec.png>


On Thursday, May 3, 2018 at 2:47:38 AM UTC-7, [email protected] wrote:
>
> 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/25183775-c911-488b-be36-752ba07cb80f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to