-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Kafka driver #476
Add Kafka driver #476
Conversation
28f2546
to
af05357
Compare
@@ -0,0 +1,107 @@ | |||
#!/usr/bin/env python | |||
""" | |||
Demostrates Zookeeper driver usage from within the testcases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zookeeper -> Kafka
ConfigOption("cfg_template"): str, | ||
ConfigOption("zookeeper_connect"): Or(str, context.is_context), | ||
ConfigOption("port"): int, | ||
ConfigOption("env", default=None): Or(None, dict), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env is already available in App driver
self.config = None | ||
self.port = port | ||
|
||
def pre_start(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use App's pre_start as well?
def get_options(cls): | ||
return { | ||
ConfigOption("cfg_template"): str, | ||
ConfigOption("zookeeper_connect"): Or(str, context.is_context), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is only used in config file, maybe we don't need this ConfigOption? We can refer to zk driver's property directly in kafka's config file.
72e2375
to
58d022a
Compare
No description provided.