Fix a issue for kafka-publisher and refactor the test code
Fix a issue which causes error when default policy is selected.
Add test codes to avoid the same mistakes again.
Fix a bug of the test code which is:
* KafkaBrokerPublisher tries to connect localhost when __init__
is called because of the lack of mocking _get_client function
before initializing KafkaBrokerPublisher.
Reviewed: https:/ /review. openstack. org/170644 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=129929c3462 274991415ae4f10 d7820a86faabfe
Committed: https:/
Submitter: Jenkins
Branch: master
commit 129929c34622749 91415ae4f10d782 0a86faabfe
Author: Komei Shimamura <email address hidden>
Date: Fri Apr 3 22:16:11 2015 -0700
Fix a issue for kafka-publisher and refactor the test code
Fix a issue which causes error when default policy is selected. isher tries to connect localhost when __init__ isher.
Add test codes to avoid the same mistakes again.
Fix a bug of the test code which is:
* KafkaBrokerPubl
is called because of the lack of mocking _get_client function
before initializing KafkaBrokerPubl
Closes-Bug: 1441175 0ee45b2362b8a0c d2a59d8c3a2
Closes-Bug: 1441258
Change-Id: I306db443a86686