This commit is contained in:
parent
2cb6ef3a6c
commit
f898af4558
16
integtest.py
16
integtest.py
@ -4,11 +4,11 @@
|
|||||||
Integration test for the producer module.
|
Integration test for the producer module.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
import os
|
||||||
import consumerlocator
|
from communicator import Communicator
|
||||||
import communicator
|
from consumerlocator import ConsumerLocator
|
||||||
import messagesender
|
from messagesender import MessageSender
|
||||||
import redisconnector
|
from redisconnector import RedisConnector
|
||||||
from pytest_redis import factories
|
from pytest_redis import factories
|
||||||
|
|
||||||
__author__ = "@dscharnitzky"
|
__author__ = "@dscharnitzky"
|
||||||
@ -20,6 +20,7 @@ generateduuid = '2fbff1f2-27e7-44c8-88d9-7348cee8c1c3'
|
|||||||
redis_proc = factories.redis_proc(host='cache', port=6379)
|
redis_proc = factories.redis_proc(host='cache', port=6379)
|
||||||
redis_db = factories.redisdb('redis_nooproc')
|
redis_db = factories.redisdb('redis_nooproc')
|
||||||
|
|
||||||
|
KNOWNCONSUMER = os.getenv("PRODUCER_KNOWNCONSUMER", '10.69.42.1')
|
||||||
|
|
||||||
def test_integration(mocker):
|
def test_integration(mocker):
|
||||||
"""
|
"""
|
||||||
@ -27,4 +28,7 @@ def test_integration(mocker):
|
|||||||
|
|
||||||
:param mocker: patches the :class:`communicator.Communicator`.
|
:param mocker: patches the :class:`communicator.Communicator`.
|
||||||
"""
|
"""
|
||||||
pass
|
communicator = Communicator(currentconsumer=KNOWNCONSUMER, uuid=generateduuid)
|
||||||
|
messagesender = MessageSender(communicator=communicator, uuid=generateduuid)
|
||||||
|
consumerlocator = ConsumerLocator(uuid=generateduuid, communicator=communicator,
|
||||||
|
redisconnector=RedisConnector())
|
||||||
|
Reference in New Issue
Block a user