added template content tests

Added content tests for all other templates, Added some negation tests, and where applicable, platform tests for RHEL vs Ubuntu
This commit is contained in:
alop
2013-05-09 14:22:07 -07:00
parent a57649564b
commit b2a91e4335
4 changed files with 13 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ def expect_creates_cinder_conf service, action=:restart
expect(@chef_run).to create_file_with_content "/etc/cinder/cinder.conf", "rbd_pool=rbd"
expect(@chef_run).to create_file_with_content "/etc/cinder/cinder.conf", "iscsi_helper=tgtadm"
expect(@chef_run).to create_file_with_content "/etc/cinder/cinder.conf", "RBDDriver"
expect(@chef_run).not_to create_file_with_content "/etc/cinder/cinder.conf", "NetAppISCSIDriver"
end