v2 does not exist, yet.
Change-Id: Id3a332c4d78c87882a7db1a8b98479a3881b0a5f
self.assertEqual(1, len(res['snapshots']))
def test_admin_list_snapshots_all_tenants(self):
- req = fakes.HTTPRequest.blank('/v2/fake/snapshots?all_tenants=1',
+ req = fakes.HTTPRequest.blank('/v1/fake/snapshots?all_tenants=1',
use_admin_context=True)
res = self.controller.index(req)
self.assertTrue('snapshots' in res)
self.assertEqual(3, len(res['snapshots']))
def test_all_tenants_non_admin_gets_all_tenants(self):
- req = fakes.HTTPRequest.blank('/v2/fake/snapshots?all_tenants=1')
+ req = fakes.HTTPRequest.blank('/v1/fake/snapshots?all_tenants=1')
res = self.controller.index(req)
self.assertTrue('snapshots' in res)
self.assertEqual(1, len(res['snapshots']))
def test_non_admin_get_by_project(self):
- req = fakes.HTTPRequest.blank('/v2/fake/snapshots')
+ req = fakes.HTTPRequest.blank('/v1/fake/snapshots')
res = self.controller.index(req)
self.assertTrue('snapshots' in res)
self.assertEqual(1, len(res['snapshots']))
deleted_at=None,
id=42)
- request = fakes.HTTPRequest.blank("/v2")
+ request = fakes.HTTPRequest.blank("/v1")
output = view_builder.show(request, raw_volume_type)
self.assertTrue('volume_type' in output)
deleted_at=None,
id=42 + i))
- request = fakes.HTTPRequest.blank("/v2")
+ request = fakes.HTTPRequest.blank("/v1")
output = view_builder.index(request, raw_volume_types)
self.assertTrue('volume_types' in output)
1)
def test_admin_list_volumes_limited_to_project(self):
- req = fakes.HTTPRequest.blank('/v2/fake/volumes',
+ req = fakes.HTTPRequest.blank('/v1/fake/volumes',
use_admin_context=True)
res = self.controller.index(req)
self.assertEqual(1, len(res['volumes']))
def test_admin_list_volumes_all_tenants(self):
- req = fakes.HTTPRequest.blank('/v2/fake/volumes?all_tenants=1',
+ req = fakes.HTTPRequest.blank('/v1/fake/volumes?all_tenants=1',
use_admin_context=True)
res = self.controller.index(req)
self.assertTrue('volumes' in res)
self.assertEqual(3, len(res['volumes']))
def test_all_tenants_non_admin_gets_all_tenants(self):
- req = fakes.HTTPRequest.blank('/v2/fake/volumes?all_tenants=1')
+ req = fakes.HTTPRequest.blank('/v1/fake/volumes?all_tenants=1')
res = self.controller.index(req)
self.assertTrue('volumes' in res)
self.assertEqual(1, len(res['volumes']))
def test_non_admin_get_by_project(self):
- req = fakes.HTTPRequest.blank('/v2/fake/volumes')
+ req = fakes.HTTPRequest.blank('/v1/fake/volumes')
res = self.controller.index(req)
self.assertTrue('volumes' in res)
self.assertEqual(1, len(res['volumes']))