pool_capacity = None # type: Optional[int]
fill_mb = None
- # Subclasses define what fullness means to them
def is_full(self):
- raise NotImplementedError()
+ return self.fs.is_full()
def setUp(self):
CephFSTestCase.setUp(self)
self.fs.mon_manager.raw_cluster_cmd("osd", "pool", "set-quota", pool_name,
"max_bytes", "{0}".format(self.pool_capacity))
- def is_full(self):
- return self.fs.is_full()
-
class TestClusterFull(FullnessTestCase):
"""
TestClusterFull.pool_capacity = int(max_avail * full_ratio)
TestClusterFull.fill_mb = (self.pool_capacity // (1024 * 1024))
- def is_full(self):
- return self.fs.is_full()
-
# Hide the parent class so that unittest.loader doesn't try to run it.
del globals()['FullnessTestCase']