]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Added unit test cases for _is_share_eligible in NFS driver.
authorThang Pham <thang.g.pham@gmail.com>
Thu, 27 Mar 2014 16:18:35 +0000 (12:18 -0400)
committerThang Pham <thang.g.pham@gmail.com>
Tue, 8 Apr 2014 21:23:37 +0000 (17:23 -0400)
commite5afa13f0c2d59b3e4abbad77bf9997d849f3290
treec68d8b8dd879140d03923cdb58a169966b2d90eb
parenta3a3b8358791fbe7db13361c8e532b6b97e8a73d
Added unit test cases for _is_share_eligible in NFS driver.

The generic NFS driver (under cinder/volume/drivers/nfs.py) has
a method called _is_share_eligible, which checks if a given NFS
share meet user specified conditions, such as:
  1. The ratio of actual space (used_space / total_space) is
     less than 'nfs_used_ratio'.
  2. There is enough space is available for the new volume.
This patch adds the corresponding unit test case for it.

Change-Id: I4489cbbca0a1a75a1144a87628843baf0a92f8a8
Closes-Bug: #1298414
cinder/tests/test_nfs.py