Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

doubt is rspec-puppet concept

Hi,

From the last two weeks I am learning rspec-puppet and doing sample code testing.

Today I tried host.pp manifests, just adding host name "1235 puppet.example.com puppet" to /etc/hosts file.

I have written rspec-puppet testcase and it is working.

The host entry "1235 puppet.example.com puppet" is not present in /etc/hosts, but howcome my testcase is passing. Because as per my knowledge rspec-puupet test file will check generated catalog, if so how my test pass without any error without catalog update.

Please correct me if my understanding is wrong.

doubt is rspec-puppet concept

Hi,

From the last two weeks I am learning rspec-puppet and doing sample code testing.

Today I tried host.pp manifests, just adding host name "1235 puppet.example.com puppet" to /etc/hosts file.

I have written rspec-puppet testcase and it is working.

The host entry "1235 puppet.example.com puppet" is not present in /etc/hosts, but howcome my testcase is passing. Because as per my knowledge rspec-puupet rspec-puppet test file will check generated catalog, if so how my test pass without any error without catalog update.

Please correct me if my understanding is wrong.