From 477092abdb41449158538dfd49d8cd25c5c8e42a Mon Sep 17 00:00:00 2001 From: Sastry Isukapalli Date: Mon, 26 Mar 2018 15:57:20 -0400 Subject: Remove code smell from DMaaP adapter Issue-ID: OPTFRA-195 Change-Id: I67f2f5c6f9190bb91f34b371c0bc3ea1aa2367b0 Signed-off-by: Sastry Isukapalli --- test/adapters/test_message_router.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/adapters/test_message_router.py b/test/adapters/test_message_router.py index 60580d4..a9c4636 100644 --- a/test/adapters/test_message_router.py +++ b/test/adapters/test_message_router.py @@ -28,14 +28,13 @@ class TestMessageRouter(unittest.TestCase): mr = MR.MessageRouterClient(dmaap_url="https://MYHOST:3905") def test_valid_MR_with_base_urls(self): - base_urls = ["https://MYHOST1:3905/","https://MYHOST2:3905/"] - mr = MR.MessageRouterClient(mr_host_base_urls=base_urls, topic="MY-TOPIC") + base_urls = ["https://MYHOST1:3905/events/MY-TOPIC","https://MYHOST2:3905/events/MY-TOPIC"] + mr = MR.MessageRouterClient(dmaap_url=base_urls) def test_invalid_valid_MR_with_base_urls(self): - """Topic missing""" - base_urls = ["https://MYHOST1:3905/","https://MYHOST2:3905/"] + """No dmaap_url""" try: - mr = MR.MessageRouterClient(mr_host_base_urls=base_urls) + mr = MR.MessageRouterClient() except MessageBusConfigurationException: return -- cgit 1.2.3-korg