Increase default quota for share networks from 3 to 5
Change-Id: I6eaa854249a6b22b9e0161a1e69468d88f755e16
This commit is contained in:
@@ -42,7 +42,7 @@ quota_opts = [
|
||||
help='number of share gigabytes (snapshots are also included) '
|
||||
'allowed per project'),
|
||||
cfg.IntOpt('quota_share_networks',
|
||||
default=3,
|
||||
default=5,
|
||||
help='number of activated share-networks allowed per project'),
|
||||
cfg.IntOpt('reservation_expire',
|
||||
default=86400,
|
||||
|
||||
@@ -626,7 +626,7 @@ class DbQuotaDriverTestCase(test.TestCase):
|
||||
"shares": {"limit": 10, "in_use": 2, "reserved": 0, },
|
||||
"gigabytes": {"limit": 50, "in_use": 10, "reserved": 0, },
|
||||
"snapshots": {"limit": 10, "in_use": 0, "reserved": 0, },
|
||||
"share_networks": {"limit": 3, "in_use": 0, "reserved": 0, },
|
||||
"share_networks": {"limit": 5, "in_use": 0, "reserved": 0, },
|
||||
}
|
||||
|
||||
def setUp(self):
|
||||
@@ -659,7 +659,7 @@ class DbQuotaDriverTestCase(test.TestCase):
|
||||
"shares": 10,
|
||||
"gigabytes": 1000,
|
||||
"snapshots": 10,
|
||||
"share_networks": 3,
|
||||
"share_networks": 5,
|
||||
}
|
||||
self.assertEqual(result, expected)
|
||||
|
||||
@@ -681,7 +681,7 @@ class DbQuotaDriverTestCase(test.TestCase):
|
||||
"shares": 10,
|
||||
"gigabytes": 500,
|
||||
"snapshots": 10,
|
||||
"share_networks": 3,
|
||||
"share_networks": 5,
|
||||
}
|
||||
self.assertEqual(result, expected)
|
||||
|
||||
@@ -860,7 +860,7 @@ class DbQuotaDriverTestCase(test.TestCase):
|
||||
"shares": {"limit": 10, },
|
||||
"gigabytes": {"limit": 50, },
|
||||
"snapshots": {"limit": 10, },
|
||||
"share_networks": {"limit": 3, },
|
||||
"share_networks": {"limit": 5, },
|
||||
}
|
||||
self.assertEqual(result, expected)
|
||||
|
||||
@@ -876,7 +876,7 @@ class DbQuotaDriverTestCase(test.TestCase):
|
||||
"shares": {"limit": 10, },
|
||||
"gigabytes": {"limit": 50, },
|
||||
"snapshots": {"limit": 10, },
|
||||
"share_networks": {"limit": 3, },
|
||||
"share_networks": {"limit": 5, },
|
||||
}
|
||||
self.assertEqual(result, expected)
|
||||
|
||||
@@ -930,7 +930,7 @@ class DbQuotaDriverTestCase(test.TestCase):
|
||||
"shares": {"minimum": 0, "maximum": 12, },
|
||||
"gigabytes": {"minimum": 0, "maximum": 1000, },
|
||||
"snapshots": {"minimum": 0, "maximum": 10, },
|
||||
"share_networks": {"minimum": 0, "maximum": 3, },
|
||||
"share_networks": {"minimum": 0, "maximum": 5, },
|
||||
}
|
||||
self.assertEqual(result, expected)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user