Beispiel #1
0
    def test_delete(self):
        """
        Test we can delete an existing image in the swift store
        """
        loc = get_location_from_uri("swift://*****:*****@authurl/glance/2")

        SwiftBackend.delete(loc)

        self.assertRaises(exception.NotFound,
                          SwiftBackend.get,
                          loc)
    def test_delete(self):
        """
        Test we can delete an existing image in the swift store
        """
        url_pieces = urlparse.urlparse(
            "swift://*****:*****@auth_address/glance/2")

        SwiftBackend.delete(url_pieces)

        self.assertRaises(exception.NotFound,
                          SwiftBackend.get,
                          url_pieces)