diff options
| author | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-02 17:36:21 -0500 |
|---|---|---|
| committer | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-03-02 17:36:21 -0500 |
| commit | d33866923958b3529a812f4eef7dea4a6591a423 (patch) | |
| tree | cde40cef7e96aabf6b0e86a31a89a77c6cc12955 /nova/tests | |
| parent | 7b3ccd5fd1636ebc437a89a3667e6e712004e87f (diff) | |
add support for quotas on file injection
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_quota.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nova/tests/test_quota.py b/nova/tests/test_quota.py index 1e42fddf3..48e5a5538 100644 --- a/nova/tests/test_quota.py +++ b/nova/tests/test_quota.py @@ -176,3 +176,13 @@ class QuotaTestCase(test.TestCase): instance_type='m1.small', image_id='fake', metadata=metadata) + + def test_allowed_file_injection_files(self): + self.assertEqual( + quota.allowed_file_injection_files(self.context), + FLAGS.quota_file_injection_max_files) + + def test_allowed_file_injection_file_bytes(self): + self.assertEqual( + quota.allowed_file_injection_file_bytes(self.context), + FLAGS.quota_file_injection_max_file_bytes) |
