Reorganize the AMQP 1.0 driver source files
This patch simply moves the existing AMQP 1.0 driver files into a directory layout that is consistent with the other drivers. The driver unit tests are also moved to the proper test directory. There are no changes in driver functionality or API. Change-Id: I83a5d5433be8c3b317597100af69192ec5be81f1 Closes-Bug: #1579823
This commit is contained in:
parent
197bf4b5db
commit
e72a8d5bc4
@ -34,8 +34,8 @@ import proton
|
||||
import pyngus
|
||||
from six import moves
|
||||
|
||||
from oslo_messaging._drivers.protocols.amqp import eventloop
|
||||
from oslo_messaging._drivers.protocols.amqp import opts
|
||||
from oslo_messaging._drivers.amqp1_driver import eventloop
|
||||
from oslo_messaging._drivers.amqp1_driver import opts
|
||||
from oslo_messaging._i18n import _LE, _LI, _LW
|
||||
from oslo_messaging import exceptions
|
||||
from oslo_messaging import transport
|
@ -16,7 +16,7 @@ import logging
|
||||
import threading
|
||||
import time
|
||||
|
||||
from oslo_messaging._drivers.protocols.amqp import controller
|
||||
from oslo_messaging._drivers.amqp1_driver import controller
|
||||
from oslo_messaging._i18n import _LW
|
||||
from oslo_messaging import exceptions
|
||||
|
@ -39,10 +39,10 @@ from oslo_messaging import target as messaging_target
|
||||
|
||||
proton = importutils.try_import('proton')
|
||||
controller = importutils.try_import(
|
||||
'oslo_messaging._drivers.protocols.amqp.controller'
|
||||
'oslo_messaging._drivers.amqp1_driver.controller'
|
||||
)
|
||||
drivertasks = importutils.try_import(
|
||||
'oslo_messaging._drivers.protocols.amqp.drivertasks'
|
||||
'oslo_messaging._drivers.amqp1_driver.drivertasks'
|
||||
)
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -55,7 +55,7 @@ class ConfFixture(fixtures.Fixture):
|
||||
'oslo_messaging._drivers.amqp', 'amqp_opts',
|
||||
'oslo_messaging_qpid')
|
||||
_import_opts(self.conf,
|
||||
'oslo_messaging._drivers.protocols.amqp.opts',
|
||||
'oslo_messaging._drivers.amqp1_driver.opts',
|
||||
'amqp1_opts', 'oslo_messaging_amqp')
|
||||
_import_opts(self.conf,
|
||||
'oslo_messaging._drivers.impl_zmq', 'zmq_opts')
|
||||
|
@ -21,12 +21,12 @@ import copy
|
||||
import itertools
|
||||
|
||||
from oslo_messaging._drivers import amqp
|
||||
from oslo_messaging._drivers.amqp1_driver import opts as amqp_opts
|
||||
from oslo_messaging._drivers import base as drivers_base
|
||||
from oslo_messaging._drivers import impl_pika
|
||||
from oslo_messaging._drivers import impl_rabbit
|
||||
from oslo_messaging._drivers import impl_zmq
|
||||
from oslo_messaging._drivers.pika_driver import pika_connection_factory
|
||||
from oslo_messaging._drivers.protocols.amqp import opts as amqp_opts
|
||||
from oslo_messaging._drivers.zmq_driver.matchmaker import matchmaker_redis
|
||||
from oslo_messaging.notify import notifier
|
||||
from oslo_messaging.rpc import client
|
||||
|
@ -36,7 +36,7 @@ from oslo_messaging.tests import utils as test_utils
|
||||
# are available in the base repos for all supported platforms.
|
||||
pyngus = importutils.try_import("pyngus")
|
||||
if pyngus:
|
||||
from oslo_messaging._drivers.protocols.amqp import driver as amqp_driver
|
||||
import oslo_messaging._drivers.impl_amqp1 as amqp_driver
|
||||
|
||||
# The Cyrus-based SASL tests can only be run if the installed version of proton
|
||||
# has been built with Cyrus SASL support.
|
@ -30,7 +30,7 @@ console_scripts =
|
||||
oslo.messaging.drivers =
|
||||
rabbit = oslo_messaging._drivers.impl_rabbit:RabbitDriver
|
||||
zmq = oslo_messaging._drivers.impl_zmq:ZmqDriver
|
||||
amqp = oslo_messaging._drivers.protocols.amqp.driver:ProtonDriver
|
||||
amqp = oslo_messaging._drivers.impl_amqp1:ProtonDriver
|
||||
|
||||
# This driver is supporting for only notification usage
|
||||
kafka = oslo_messaging._drivers.impl_kafka:KafkaDriver
|
||||
|
Loading…
Reference in New Issue
Block a user