Implements rabbit-pika driver
In this patch new driver implementation added and registered in setup.cfg, integrated ith tox functional tests. Implements: bp rabbit-pika Depends-On: I7bda78820e657b1e97bf888d4065a917eb317cfb Change-Id: I40842a03ce73d171644c362e3abfca2990aca58a
This commit is contained in:
parent
4f49b7e253
commit
ad2f475955
1114
oslo_messaging/_drivers/impl_pika.py
Normal file
1114
oslo_messaging/_drivers/impl_pika.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -33,6 +33,8 @@ PyYAML>=3.1.0
|
|||||||
# we set the amqp version to ensure heartbeat works
|
# we set the amqp version to ensure heartbeat works
|
||||||
amqp>=1.4.0
|
amqp>=1.4.0
|
||||||
kombu>=3.0.7
|
kombu>=3.0.7
|
||||||
|
pika>=0.10.0
|
||||||
|
pika-pool>=0.1.2
|
||||||
|
|
||||||
# middleware
|
# middleware
|
||||||
oslo.middleware>=2.8.0 # Apache-2.0
|
oslo.middleware>=2.8.0 # Apache-2.0
|
||||||
|
32
setup-test-env-pika.sh
Executable file
32
setup-test-env-pika.sh
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
. tools/functions.sh
|
||||||
|
|
||||||
|
DATADIR=$(mktemp -d /tmp/OSLOMSG-RABBIT.XXXXX)
|
||||||
|
trap "clean_exit $DATADIR" EXIT
|
||||||
|
|
||||||
|
export RABBITMQ_NODE_IP_ADDRESS=127.0.0.1
|
||||||
|
export RABBITMQ_NODE_PORT=65123
|
||||||
|
export RABBITMQ_NODENAME=oslomsg-test@localhost
|
||||||
|
export RABBITMQ_LOG_BASE=$DATADIR
|
||||||
|
export RABBITMQ_MNESIA_BASE=$DATADIR
|
||||||
|
export RABBITMQ_PID_FILE=$DATADIR/pid
|
||||||
|
export HOME=$DATADIR
|
||||||
|
|
||||||
|
# NOTE(sileht): We directly use the rabbitmq scripts
|
||||||
|
# to avoid distribution check, like running as root/rabbitmq
|
||||||
|
# enforcing.
|
||||||
|
export PATH=/usr/lib/rabbitmq/bin/:$PATH
|
||||||
|
|
||||||
|
|
||||||
|
mkfifo ${DATADIR}/out
|
||||||
|
rabbitmq-server &> ${DATADIR}/out &
|
||||||
|
wait_for_line "Starting broker... completed" "ERROR:" ${DATADIR}/out
|
||||||
|
|
||||||
|
rabbitmqctl add_user oslomsg oslosecret
|
||||||
|
rabbitmqctl set_permissions "oslomsg" ".*" ".*" ".*"
|
||||||
|
|
||||||
|
|
||||||
|
export TRANSPORT_URL=pika://oslomsg:oslosecret@127.0.0.1:65123//
|
||||||
|
$*
|
@ -35,6 +35,7 @@ oslo.messaging.drivers =
|
|||||||
|
|
||||||
# This is just for internal testing
|
# This is just for internal testing
|
||||||
fake = oslo_messaging._drivers.impl_fake:FakeDriver
|
fake = oslo_messaging._drivers.impl_fake:FakeDriver
|
||||||
|
pika = oslo_messaging._drivers.impl_pika:PikaDriverCompatibleWithRabbitDriver
|
||||||
|
|
||||||
oslo.messaging.executors =
|
oslo.messaging.executors =
|
||||||
aioeventlet = oslo_messaging._executors.impl_aioeventlet:AsyncioEventletExecutor
|
aioeventlet = oslo_messaging._executors.impl_aioeventlet:AsyncioEventletExecutor
|
||||||
|
3
tox.ini
3
tox.ini
@ -30,6 +30,9 @@ commands = {toxinidir}/setup-test-env-qpid.sh 0-10 python setup.py testr --slowe
|
|||||||
[testenv:py27-func-rabbit]
|
[testenv:py27-func-rabbit]
|
||||||
commands = {toxinidir}/setup-test-env-rabbit.sh python setup.py testr --slowest --testr-args='oslo_messaging.tests.functional'
|
commands = {toxinidir}/setup-test-env-rabbit.sh python setup.py testr --slowest --testr-args='oslo_messaging.tests.functional'
|
||||||
|
|
||||||
|
[testenv:py27-func-pika]
|
||||||
|
commands = {toxinidir}/setup-test-env-pika.sh python setup.py testr --slowest --testr-args='oslo_messaging.tests.functional'
|
||||||
|
|
||||||
[testenv:py27-func-amqp1]
|
[testenv:py27-func-amqp1]
|
||||||
setenv = TRANSPORT_URL=amqp://stackqpid:secretqpid@127.0.0.1:65123//
|
setenv = TRANSPORT_URL=amqp://stackqpid:secretqpid@127.0.0.1:65123//
|
||||||
# NOTE(flaper87): This gate job run on fedora21 for now.
|
# NOTE(flaper87): This gate job run on fedora21 for now.
|
||||||
|
Loading…
Reference in New Issue
Block a user