]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Improve coverage for snapshot_get_by_host
authorVipin Balachandran <vbala@vmware.com>
Thu, 10 Sep 2015 06:42:44 +0000 (12:12 +0530)
committerVipin Balachandran <vbala@vmware.com>
Thu, 10 Sep 2015 07:05:18 +0000 (12:35 +0530)
commit5e533d95552da588a823df9baf72eaf77da9d136
treeb1e1c8b12f5bdc67f627e7acf367ab749017ec88
parentcf3cfb3a66066cfdc1ad15ac35b204d4a7b0301f
Improve coverage for snapshot_get_by_host

Commit cf3cfb3a66066cfdc1ad15ac35b204d4a7b0301f modified
snapshot_get_by_host method (in db/sqlalchemy/api.py) to
return an empty list if the host argument is None or empty.
This patch updates the unit test to cover this case.

Change-Id: If09ac7587df8c4a3eae84b162d76f4168507aa52
cinder/tests/unit/test_db_api.py