diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-07-13 00:44:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-07-13 00:44:35 +0000 |
| commit | 3a451e7e7b7d6af4e271bf0a5219311ee2545e52 (patch) | |
| tree | 6c2ccffc9772344a0eb1d076bbfdc56e3860583a /nova/tests | |
| parent | f29ca7ee4bcea1fbf88648ef4de4d0c32c459fff (diff) | |
| parent | ba45d3597ef3a709d32a8b793a02ac599764c40e (diff) | |
Merge "Remove deprecated auth from GlanceImageService"
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/image/test_glance.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/nova/tests/image/test_glance.py b/nova/tests/image/test_glance.py index 0518007c9..d6c9f8606 100644 --- a/nova/tests/image/test_glance.py +++ b/nova/tests/image/test_glance.py @@ -340,32 +340,6 @@ class TestGlanceImageService(test.TestCase): num_images = len(self.service.detail(self.context)) self.assertEquals(1, num_images) - def test_delete_not_by_owner(self): - # this test is only relevant for deprecated auth mode - self.flags(auth_strategy='deprecated') - - fixture = self._make_fixture(name='test image') - properties = {'project_id': 'proj1'} - fixture['properties'] = properties - - num_images = len(self.service.detail(self.context)) - self.assertEquals(0, num_images) - - image_id = self.service.create(self.context, fixture)['id'] - num_images = len(self.service.detail(self.context)) - self.assertEquals(1, num_images) - - proj_id = self.context.project_id - self.context.project_id = 'proj2' - - self.assertRaises(exception.NotAuthorized, self.service.delete, - self.context, image_id) - - self.context.project_id = proj_id - - num_images = len(self.service.detail(self.context)) - self.assertEquals(1, num_images) - def test_show_passes_through_to_client(self): fixture = self._make_fixture(name='image1', is_public=True) image_id = self.service.create(self.context, fixture)['id'] |
