summaryrefslogtreecommitdiff
path: root/test/test_client.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix KafkaClient->SimpleClient references0.9Dana Powers2016-01-071-32/+32
|
* Rename TopicAndPartition -> TopicPartitionDana Powers2015-12-281-10/+10
|
* Switch BrokerConnection to (mostly) non-blocking IO.Dana Powers2015-12-171-35/+47
| | | | | | - return kafka.Future on send() - recv is now non-blocking call that completes futures when possible - update KafkaClient to block on future completion
* Drop kafka_bytestringDana Powers2015-12-101-9/+8
|
* Update client tests for new protocol usageDana Powers2015-12-091-74/+61
|
* Make external API consistently support python3 strings for topic.Space2015-04-031-34/+36
|
* Add test for correlation_id rolloverDana Powers2015-03-291-0/+8
|
* Use reflection to avoid multiple errno definitionsAlex Couture-Beil2015-01-101-3/+2
|
* Merge pull request #223 from dpkp/metadata_refactorDana Powers2014-09-081-79/+218
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Metadata Refactor * add MetadataRequest and MetadataResponse namedtuples * add TopicMetadata namedtuple * add error codes to Topic and Partition Metadata * add KafkaClient.send_metadata_request() method * KafkaProtocol.decode_metadata_response changed to return a MetadataResponse object so that it is consistent with server api: [broker_list, topic_list] * raise server exceptions in load_metadata_for_topics(*topics) unless topics is null (full refresh) * Replace non-standard exceptions (LeaderUnavailable, PartitionUnavailable) with server standard exceptions (LeaderNotAvailableError, UnknownTopicOrPartitionError) Conflicts: kafka/client.py test/test_client.py test/test_producer_integration.py test/test_protocol.py
| * Add client unit tests for has_metadata_for_topic and ensure_topic_existsDana Powers2014-09-011-1/+63
| |
| * Add test for sending produce request to unknown topic w/o auto-creationDana Powers2014-09-011-0/+25
| |
| * Use standard exceptions in client._get_leader_for_partition()Dana Powers2014-09-011-8/+18
| | | | | | | | | | | | - drop custom PartitionUnavailable exception - raise UnknownTopicOrPartitionError or LeaderNotAvailableError - add tests for exception raises
| * load_metadata_for_topics should raise exceptions on explicit topic argsDana Powers2014-09-011-25/+46
| |
| * No more custom LeaderUnavailableError exception -- raise LeaderNotAvailableErrorDana Powers2014-09-011-2/+2
| |
| * Improve metadata protocol handlingDana Powers2014-09-011-68/+90
| | | | | | | | | | | | | | | | | | | | - add MetadataRequest and MetadataResponse namedtuples - add TopicMetadata namedtuple - add error codes to Topic and Partition Metadata - add KafkaClient.send_metadata_request() method - KafkaProtocol.decode_metadata_response changed to return a MetadataResponse object so that it is consistent with server api: [broker_list, topic_list]
* | Merge pull request #227 from wizzat-feature/py3Dana Powers2014-09-071-16/+19
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3 Support Conflicts: kafka/producer.py test/test_client.py test/test_client_integration.py test/test_codec.py test/test_consumer.py test/test_consumer_integration.py test/test_failover_integration.py test/test_producer.py test/test_producer_integration.py test/test_protocol.py test/test_util.py
| * | Fix test errors related to mocksMark Roberts2014-09-031-3/+6
| | |
| * | Make all unit tests pass on py3.3/3.4Bruno Renié2014-09-031-10/+11
| | |
| * | Use base unittest or unittest2 depending on python versionBruno Renié2014-09-031-2/+2
| |/
* | Fix socket timeout test -- mock the side_effectDana Powers2014-09-011-1/+19
|/
* Add pylint to tox.ini; test both kafka and test; default to error-checking ↵Dana Powers2014-08-251-6/+1
| | | | only; fixup errors; skip kafka/queue.py
* Fix Python 2.6 supportMark Roberts2014-04-231-2/+2
|
* Refactor away _get_conn_for_broker. Fix bug in _get_connMark Roberts2014-04-091-1/+1
|
* Split test files, modify test_protocolMark Roberts2014-04-081-15/+237
|
* Remove test support for py26 since it's brokenMark Roberts2014-04-071-0/+27