Home
last modified time | relevance | path

Searched refs:volume_api (Results 1 – 25 of 60) sorted by relevance

123

/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/volume/
H A Dtest_availability_zone.py36 azs = self.volume_api.list_availability_zones(enable_cache=True)
40 self.volume_api.list_availability_zones(enable_cache=True)
44 azs = self.volume_api.list_availability_zones(enable_cache=True,
47 time_before = self.volume_api.availability_zones_last_fetched
50 self.volume_api.list_availability_zones(enable_cache=True,
53 self.volume_api.availability_zones_last_fetched)
69 azs = self.volume_api.list_availability_zones(enable_cache=True)
72 last_fetched = self.volume_api.availability_zones_last_fetched
74 self.volume_api.list_availability_zones(enable_cache=True)
115 volume_api = cinder.volume.api.API()
[all …]
H A Dtest_volume.py540 volume_api = cinder.volume.api.API()
554 volume_api = cinder.volume.api.API()
576 volume_api = cinder.volume.api.API()
620 volume_api = cinder.volume.api.API()
646 volume = volume_api.create(
1227 volume_api.create(self.context,
1284 mock.patch.object(volume_api,
1290 volume_api.create(self.context,
1297 volume_api.create(self.context,
1763 self.mock_object(volume_api,
[all …]
H A Dtest_snapshot.py194 volume_api = cinder.volume.api.API()
213 volume_api = cinder.volume.api.API()
228 volume_api = cinder.volume.api.API()
247 volume_api = cinder.volume.api.API()
264 volume_api = cinder.volume.api.API()
280 volume_api = cinder.volume.api.API()
296 volume_api = cinder.volume.api.API()
310 volume_api = cinder.volume.api.API()
332 volume_api = cinder.volume.api.API()
355 volume_api = cinder.volume.api.API()
[all …]
H A Dtest_volume_retype.py82 vol = self.volume_api.create(self.context,
89 self.volume_api.retype(self.user_context,
96 vol = self.volume_api.create(
104 self.volume_api.retype(self.user_context,
114 self.volume_api.retype,
140 self.volume_api.retype(self.user_context,
H A Dtest_replication_manager.py111 volume_api = cinder.volume.api.API()
126 volume_api = cinder.volume.api.API()
128 volume_api.failover,
144 volume_api = cinder.volume.api.API()
160 volume_api = cinder.volume.api.API()
162 volume_api.freeze_host,
178 volume_api = cinder.volume.api.API()
194 volume_api = cinder.volume.api.API()
196 volume_api.thaw_host,
352 self.volume_api.failover(self.context, None, cluster_name,
[all …]
H A Dtest_image.py400 volume_api = cinder.volume.api.API()
412 volume_api.delete(self.context, volume)
422 volume_api = cinder.volume.api.API()
641 volume_api = cinder.volume.api.API(
661 volume_api = cinder.volume.api.API(
665 volume_api.create,
679 volume_api = cinder.volume.api.API(
683 volume_api.create,
697 volume_api = cinder.volume.api.API(
701 volume_api.create,
[all …]
/dports/misc/py-cinder/cinder-12.0.10/cinder/api/contrib/
H A Dvolume_actions.py43 self.volume_api = volume.API()
59 volume = self.volume_api.get(context, id)
87 self.volume_api.attach(context, volume,
108 volume = self.volume_api.get(context, id)
134 volume = self.volume_api.get(context, id)
144 volume = self.volume_api.get(context, id)
154 volume = self.volume_api.get(context, id)
164 volume = self.volume_api.get(context, id)
173 volume = self.volume_api.get(context, id)
202 volume = self.volume_api.get(context, id)
[all …]
H A Dvolume_image_metadata.py37 self.volume_api = volume.API()
41 volume = self.volume_api.get(context, volume_id)
42 meta = self.volume_api.get_volume_image_metadata(context, volume)
60 image_metas = self.volume_api.get_list_volumes_image_metadata(
109 volume = self.volume_api.get(context, volume_id)
110 return self.volume_api.update_volume_metadata(
147 self.volume_api.delete_volume_metadata(
H A Dsnapshot_manage.py38 self.volume_api = cinder_volume.API()
92 volume = self.volume_api.get(context, volume_id)
104 new_snapshot = self.volume_api.manage_existing_snapshot(
118 req, False, self.volume_api.get_manageable_snapshots,
127 req, True, self.volume_api.get_manageable_snapshots,
H A Dadmin_actions.py58 self.volume_api = volume.API()
167 return self.volume_api.get(*args, **kwargs)
170 return self.volume_api.delete(*args, **kwargs)
220 self.volume_api.terminate_connection(context, volume, connector)
228 self.volume_api.detach(context, volume, attachment_id)
257 self.volume_api.migrate_volume(context, volume, host, cluster_name,
276 ret = self.volume_api.migrate_volume_completion(context, volume,
297 return self.volume_api.get_snapshot(*args, **kwargs)
300 return self.volume_api.delete_snapshot(*args, **kwargs)
H A Dvolume_unmanage.py30 self.volume_api = volume.API()
54 vol = self.volume_api.get(context, id)
56 self.volume_api.delete(context, vol, unmanage_only=True)
H A Dsnapshot_unmanage.py32 self.volume_api = volume.API()
53 snapshot = self.volume_api.get_snapshot(context, id)
55 self.volume_api.delete_snapshot(context, snapshot,
/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/attachments/
H A Dtest_attachments_api.py27 from cinder.volume import api as volume_api unknown
44 self.volume_api = volume_api.API()
54 aref = self.volume_api.attachment_create(self.context,
101 self.volume_api.attachment_delete(self.context,
131 self.volume_api.attachment_update(self.context,
148 self.volume_api.attachment_delete(self.context,
175 self.volume_api.attachment_create(self.context,
211 self.volume_api.attachment_create(self.context,
218 self.volume_api.attachment_delete(self.context,
236 self.volume_api.attachment_create(self.context,
[all …]
/dports/devel/py-glance-store/glance_store-2.7.0/glance_store/tests/unit/common/
H A Dtest_cinder_utils.py41 self.volume_api = cinder_utils.API()
62 self.volume_api.attachment_create(
74 self.volume_api.attachment_create,
108 self.volume_api.attachment_get,
112 self.volume_api.attachment_update(self.fake_client,
119 self.volume_api.attachment_update(
131 self.volume_api.attachment_update,
145 self.volume_api.attachment_complete,
149 self.volume_api.attachment_delete(self.fake_client,
159 self.volume_api.attachment_delete,
[all …]
/dports/misc/py-cinder/cinder-12.0.10/cinder/api/v2/
H A Dsnapshots.py42 self.volume_api = volume.API()
51 snapshot = self.volume_api.get_snapshot(context, id)
63 snapshot = self.volume_api.get_snapshot(context, id)
64 self.volume_api.delete_snapshot(context, snapshot)
94 snapshots = self.volume_api.get_all_snapshots(context,
119 volume = self.volume_api.get(context, volume_id)
130 new_snapshot = self.volume_api.create_snapshot_force(
137 new_snapshot = self.volume_api.create_snapshot(
162 snapshot = self.volume_api.get_snapshot(context, id)
165 self.volume_api.update_snapshot(context, snapshot, snapshot_body)
H A Dvolumes.py50 self.volume_api = cinder_volume.API()
60 vol = self.volume_api.get(context, id, viewable_admin_meta=True)
76 volume = self.volume_api.get(context, id)
77 self.volume_api.delete(context, volume, cascade=cascade)
112 self.volume_api.check_volume_filters(filters)
113 volumes = self.volume_api.get_all(context, marker, limit,
220 kwargs['snapshot'] = self.volume_api.get_snapshot(context,
233 self.volume_api.get_volume(context,
274 new_volume = self.volume_api.create(context,
328 volume = self.volume_api.get(context, id, viewable_admin_meta=True)
[all …]
H A Dvolume_metadata.py32 self.volume_api = volume.API()
42 volume = self.volume_api.get(context, volume_id)
43 meta = self.volume_api.get_volume_metadata(context, volume)
96 volume = self.volume_api.get(context, volume_id)
98 return self.volume_api.create_volume_metadata(context, volume,
101 return self.volume_api.update_volume_metadata(
137 self.volume_api.delete_volume_metadata(
H A Dsnapshot_metadata.py30 self.volume_api = volume.API()
38 snapshot = self.volume_api.get_snapshot(context, snapshot_id)
39 meta = self.volume_api.get_snapshot_metadata(context, snapshot)
95 snapshot = self.volume_api.get_snapshot(context, snapshot_id)
96 return self.volume_api.update_snapshot_metadata(context,
133 self.volume_api.delete_snapshot_metadata(context, snapshot, id)
/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/api/v2/
H A Dtest_volumes.py45 from cinder.volume import api as volume_api unknown
69 self.mock_object(volume_api.API, "create",
123 self.mock_object(volume_api.API, 'get_all',
390 self.mock_object(volume_api.API, "create",
451 self.mock_object(volume_api.API, "create",
512 self.mock_object(volume_api.API, "create",
770 @mock.patch.object(volume_api.API, 'get',
804 self.mock_object(volume_api.API, "get",
816 self.mock_object(volume_api.API, 'get_all',
1317 self.mock_object(volume_api.API, "get",
[all …]
H A Dtest_volume_metadata.py36 from cinder.volume import api as volume_api unknown
115 self.volume_api = volume_api.API()
200 with mock.patch.object(self.controller.volume_api,
217 with mock.patch.object(self.controller.volume_api,
236 with mock.patch.object(self.controller.volume_api,
268 with mock.patch.object(self.controller.volume_api,
290 with mock.patch.object(self.controller.volume_api,
324 with mock.patch.object(self.controller.volume_api,
409 with mock.patch.object(self.controller.volume_api,
435 with mock.patch.object(self.controller.volume_api,
[all …]
/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/api/contrib/
H A Dtest_admin_actions.py44 from cinder.volume import api as volume_api unknown
66 self.volume_api = volume_api.API()
362 self.volume_api.reserve_volume(self.ctx, volume)
868 self.volume_api.reserve_volume(self.ctx, volume)
970 self.volume_api.reserve_volume(self.ctx, volume)
992 with mock.patch.object(volume_api.API, 'detach',
1009 with mock.patch.object(volume_api.API, 'detach',
1033 self.volume_api.reserve_volume(self.ctx, volume)
1124 self.volume_api.attach,
1147 self.volume_api.attach,
[all …]
H A Dtest_volume_actions.py40 from cinder.volume import api as volume_api unknown
101 with mock.patch.object(volume_api.API,
116 with mock.patch.object(volume_api.API,
146 with mock.patch.object(volume_api.API,
163 with mock.patch.object(volume_api.API,
178 with mock.patch.object(volume_api.API,
193 with mock.patch.object(volume_api.API,
252 with mock.patch.object(volume_api.API, 'attach',
271 with mock.patch.object(volume_api.API, 'attach',
301 with mock.patch.object(volume_api.API, 'detach',
[all …]
/dports/misc/py-cinder/cinder-12.0.10/cinder/api/v3/
H A Dvolumes.py69 volume = self.volume_api.get(context, id)
74 self.volume_api.delete(context, volume,
122 self.volume_api.check_volume_filters(filters, strict)
124 volumes = self.volume_api.get_all(context, marker, limit,
132 total_count = self.volume_api.calculate_resource_count(
158 num_vols, sum_size, metadata = self.volume_api.get_volume_summary(
179 volume = self.volume_api.get_volume(context, id)
195 self.volume_api.revert_to_snapshot(context, volume, l_snap)
295 kwargs['snapshot'] = self.volume_api.get_snapshot(context,
308 self.volume_api.get_volume(context,
[all …]
H A Dattachments.py29 from cinder.volume import api as volume_api unknown
44 self.volume_api = volume_api.API()
170 self.volume_api.attachment_create(context,
226 self.volume_api.attachment_update(context,
258 attachments = self.volume_api.attachment_delete(context, attachment)
/dports/misc/py-cinder/cinder-12.0.10/cinder/tests/unit/api/v3/
H A Dtest_volumes.py42 from cinder.volume import api as volume_api unknown
268 @mock.patch.object(volume_api.API, 'get_snapshot', autospec=True)
269 @mock.patch.object(volume_api.API, 'create', autospec=True)
296 self.controller.volume_api, context,
507 self.mock_object(volume_api.API, "create",
526 mock_delete = self.mock_object(volume_api.API, "delete")
552 @mock.patch.object(volume_api.API, 'create', autospec=True)
595 @mock.patch.object(volume_api.API, 'create', autospec=True)
712 @mock.patch.object(volume_api.API, 'get_volume')
729 @mock.patch.object(volume_api.API, 'get_volume')
[all …]

123