Hi,
I know if we need to check the content of a file we use the below `should match /^ test $/` in serverspec. But how can we check the entire file content is copied to the destination file.
Example
source => 'puppet:///modules/test/test.conf'
Below is the config file content
test.conf
==========
missingok
notifempty
size 30k
yearly
create 755 root root
The file contains 5 lines, there are files which has more than 50 lines. In that case, how can we do end to end testing in serverspec.
↧