コード例 #1
0
ファイル: fakes.py プロジェクト: Thingee/python-cinderclient
 def put_os_quota_sets_test(self, body, **kw):
     assert list(body.keys()) == ["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}},
     )
コード例 #2
0
ファイル: fakes.py プロジェクト: ntt-sic/python-cinderclient
 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}})
コード例 #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}})
コード例 #4
0
 def put_os_quota_sets_test(self, body, **kw):
     assert body.keys() == ['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}})
コード例 #5
0
 def put_os_quota_sets_test(self, body, **kw):
     assert body.keys() == ['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
         }
     })
コード例 #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
         }
     })