Exemple #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'], required=['class_name'])
     quota_class_set = {
         'quota_class_set': {
             'class_name': 'test',
             'metadata_items': [],
             'shares': 2,
             'snapshots': 2,
             'gigabytes': 1,
             'snapshot_gigabytes': 1,
             'share_networks': 1,
         }
     }
     return (200, {}, quota_class_set)
 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"])
     quota_class_set = {
         "quota_class_set": {
             "class_name": "test",
             "metadata_items": [],
             "shares": 2,
             "snapshots": 2,
             "gigabytes": 1,
             "snapshot_gigabytes": 1,
             "share_networks": 1,
         }
     }
     return (200, {}, quota_class_set)
 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'])
     quota_class_set = {
         'quota_class_set': {
             'class_name': 'test',
             'metadata_items': [],
             'shares': 2,
             'snapshots': 2,
             'gigabytes': 1,
             'snapshot_gigabytes': 1,
             'share_networks': 1,
         }
     }
     return (200, {}, quota_class_set)