summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSastry Isukapalli <sastry@research.att.com>2018-03-26 15:57:20 -0400
committerSastry Isukapalli <sastry@research.att.com>2018-03-26 15:58:10 -0400
commit477092abdb41449158538dfd49d8cd25c5c8e42a (patch)
tree02933668add258d945a3c2ed76aa2fada2fc9827 /test
parent4de3bb8c9f62f15d6aeb965f9d4c47edb7efd2e9 (diff)
Remove code smell from DMaaP adapter
Issue-ID: OPTFRA-195 Change-Id: I67f2f5c6f9190bb91f34b371c0bc3ea1aa2367b0 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
Diffstat (limited to 'test')
-rw-r--r--test/adapters/test_message_router.py9
1 files changed, 4 insertions, 5 deletions
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