示例#1
0
 def put_os_quota_class_sets_test(self, body, **kw):
     assert list(body) == ['quota_class_set']
     fakes.assert_has_keys(body['quota_class_set'])
     return (200, {}, {'quota_class_set': {
                       'volumes': 2,
                       'snapshots': 2,
                       'gigabytes': 1,
                       'backups': 1,
                       'backup_gigabytes': 1,
                       'per_volume_gigabytes': 1}})
示例#2
0
 def put_os_quota_class_sets_test(self, body, **kw):
     assert list(body) == ['quota_class_set']
     fakes.assert_has_keys(body['quota_class_set'])
     return (200, {}, {'quota_class_set': {
                       'volumes': 2,
                       'snapshots': 2,
                       'gigabytes': 1,
                       'backups': 1,
                       'backup_gigabytes': 1,
                       'per_volume_gigabytes': 1}})
示例#3
0
 def put_os_quota_class_sets_test(self, body, **kw):
     assert list(body) == ['quota_class_set']
     fakes.assert_has_keys(body['quota_class_set'],
                           required=['class_name'])
     return (200, {}, {'quota_class_set': {
                       'class_name': 'test',
                       'metadata_items': [],
                       'volumes': 2,
                       'snapshots': 2,
                       'gigabytes': 1,
                       'backups': 1,
                       'backup_gigabytes': 1}})
 def put_os_quota_class_sets_test(self, body, **kw):
     assert list(body) == ['quota_class_set']
     fakes.assert_has_keys(body['quota_class_set'],
                           required=['class_name'])
     return (200, {}, {'quota_class_set': {
                       'class_name': 'test',
                       'metadata_items': [],
                       'volumes': 2,
                       'snapshots': 2,
                       'gigabytes': 1,
                       'backups': 1,
                       'backup_gigabytes': 1}})
示例#5
0
 def put_os_quota_sets_test(self, body, **kw):
     assert list(body) == ['quota_set']
     fakes.assert_has_keys(body['quota_set'],
                           required=['tenant_id'])
     return (200, {}, {'quota_set': {
                       'tenant_id': 'test',
                       'metadata_items': [],
                       'volumes': 2,
                       'snapshots': 2,
                       'gigabytes': 1,
                       'backups': 1,
                       'backup_gigabytes': 1,
                       'consistencygroups': 2}})
示例#6
0
 def put_os_quota_sets_test(self, body, **kw):
     assert list(body) == ['quota_set']
     fakes.assert_has_keys(body['quota_set'],
                           required=['tenant_id'])
     return (200, {}, {'quota_set': {
                       'tenant_id': 'test',
                       'metadata_items': [],
                       'volumes': 2,
                       'snapshots': 2,
                       'gigabytes': 1,
                       'backups': 1,
                       'backup_gigabytes': 1,
                       'consistencygroups': 2,
                       'per_volume_gigabytes': 1, }})
 def put_os_quota_class_sets_test(self, body, **kw):
     assert list(body) == ["quota_class_set"]
     fakes.assert_has_keys(body["quota_class_set"], required=["class_name"])
     return (
         200,
         {},
         {
             "quota_class_set": {
                 "class_name": "test",
                 "metadata_items": [],
                 "volumes": 2,
                 "snapshots": 2,
                 "gigabytes": 1,
                 "backups": 1,
                 "backup_gigabytes": 1,
             }
         },
     )