Gave better examples of how to test templates
I wanted to work off what abe did to give examples to others on ways to add attributes and test conditionals.
This commit is contained in:
@@ -45,17 +45,6 @@ def expect_creates_cinder_conf service, action=:restart
|
||||
expect(sprintf("%o", @file.mode)).to eq "644"
|
||||
end
|
||||
|
||||
it "template contents" do
|
||||
expect(@chef_run).to create_file_with_content "/etc/cinder/cinder.conf", "autogenerated"
|
||||
expect(@chef_run).to create_file_with_content "/etc/cinder/cinder.conf", "logging.conf"
|
||||
expect(@chef_run).to create_file_with_content "/etc/cinder/cinder.conf", "lock_path=/var/lock/cinder"
|
||||
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
|
||||
|
||||
it "notifies nova-api-ec2 restart" do
|
||||
expect(@file).to notify service, action
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user