This patch focuses on providing the shards controller for sqlalchemy. As a bonus, a decorator is added that flags all methods that handles all methods that raise a connection error. The sqlalchemy driver passes all unit tests for the shards controller. The initial suite is running on the sqlite engine. A few general fixes have been applied: - shards listing unit test now uses characters for names rather than numbers as strings to avoid sorting variations between storage engines - cache.get_cache no longer takes a configOpts object Change-Id: I7400884244be94f7600a5fb489b38c7058d36b31 Partially-Implements: blueprint: sql-storage-driver
20 lines
690 B
Python
20 lines
690 B
Python
# Copyright (c) 2014 Rackspace Hosting Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from marconi.queues.storage.sqlalchemy import shards
|
|
|
|
|
|
ShardsController = shards.ShardsController
|