~ubuntu-branches/ubuntu/quantal/glance/quantal

« back to all changes in this revision

Viewing changes to glance/tests/functional/test_cache_middleware.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short, Chuck Short, Soren Hansen
  • Date: 2012-09-07 12:17:46 UTC
  • mfrom: (1.1.42)
  • Revision ID: package-import@ubuntu.com-20120907121746-a4i0aewhlzb7vw31
Tags: 2012.2~rc1~20120907.129.f0bd856-0ubuntu1
[ Chuck Short ]
* New upstream version.
* drop debian/patches/fix-docs-build.patch. 
* debian/rules: Re-activate tests.
* debain/control: Add depends on python-swiftclient.
* debian/*.usptart: make glance start from runlevel 1 to runlevel
  2. (LP: #820688)

[ Soren Hansen ]
* Update debian/watch to account for symbolically named tarballs and
  use newer URL.
* New snapshot.
* Refresh disable-network-for-docs.patch
* Fix Launchpad URLs in debian/watch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
        response, content = http.request(path, 'PUT',
150
150
                                         headers=headers,
151
151
                                         body=image_data)
152
 
        self.assertEqual(response.status, 200)
 
152
        self.assertEqual(response.status, 201)
153
153
 
154
154
        # Verify image not in cache
155
155
        image_cached_path = os.path.join(self.api_server.image_cache_dir,
334
334
        response, content = http.request(path, 'PUT')
335
335
        self.assertEqual(response.status, 403)
336
336
 
 
337
        self.stop_servers()
 
338
 
337
339
    @skip_if_disabled
338
340
    def test_cache_manage_get_cached_images(self):
339
341
        """