
test_ssh_missing_hosts_key_file tests that when the ssh_hosts_key_file is missing an InvalidInput exception is raised. It does this by setting CONF.ssh_hosts_key_file to, what is assumed to be, the location of a non-existant file. If the file, /tmp/blah, exists the test fails. This test should not be dependent on what is on the filesystem. This commit adds a mock for os.path.isfile so that when ssh_utils.SSHPool checks for existance of CONF.ssh_hosts_key_file it always gets False regardless of the state of the filesystem. Change-Id: I6bf797301a0829797d55d4442088f9ef944aec2c Closes-bug: #1392628
The Choose Your Own Adventure README for Cinder
You have come across a storage service for an open cloud computing service. It has identified itself as "Cinder." It was abstracted from the Nova project.
To monitor it from a distance: follow @openstack on twitter.
To tame it for use in your own cloud: read http://docs.openstack.org
To study its anatomy: read http://cinder.openstack.org
To dissect it in detail: visit http://github.com/openstack/cinder
To taunt it with its weaknesses: use http://bugs.launchpad.net/cinder
To watch it: http://jenkins.openstack.org
To hack at it: read HACKING.rst
Description
Languages
Python
99.7%
Smarty
0.3%