Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove SimpleClient, Producer, Consumer, Unittest (#1196) | Jeff Widman | 2019-10-11 | 1 | -529/+0 |
| | | | | | | | | | | | | | | | | | | In the 2.0 release, we're removing: * `SimpleClient` * `SimpleConsumer` * `SimpleProducer` * Old partitioners used by `SimpleProducer`; these are superceded by the `DefaultPartitioner` These have been deprecated for several years in favor of `KafkaClient` / `KafkaConsumer` / `KafkaProducer`. Since 2.0 allows breaking changes, we are removing the deprecated classes. Additionally, since the only usage of `unittest` was in tests for these old Simple* clients, this also drops `unittest` from the library. All tests now run under `pytest`. | ||||
* | Add KAFKA 2.3.0 to test matrix (#1915) | Dana Powers | 2019-09-30 | 1 | -1/+3 |
| | |||||
* | Cleanup handling of KAFKA_VERSION env var in tests (#1887) | Jeff Widman | 2019-08-22 | 1 | -4/+4 |
| | | | | | | | | | | | | | Now that we are using `pytest`, there is no need for a custom decorator because we can use `pytest.mark.skipif()`. This makes the code significantly simpler. In particular, dropping the custom `@kafka_versions()` decorator is necessary because it uses `func.wraps()` which doesn't play nice with `pytest` fixtures: - https://github.com/pytest-dev/pytest/issues/677 - https://stackoverflow.com/a/19614807/770425 So this is a pre-requisite to migrating some of those tests to using pytest fixtures. | ||||
* | Use test.fixtures.version not test.conftest.version to avoid warnings (#1731) | Dana Powers | 2019-03-06 | 1 | -2/+1 |
| | |||||
* | Vendor `six` consistently | Jeff Widman | 2018-10-22 | 1 | -1/+1 |
| | | | | Use vendored `six`, and also `six.moves.range` rather than `xrange` | ||||
* | Skip flakey SimpleProducer test | Dana Powers | 2018-04-18 | 1 | -0/+1 |
| | |||||
* | Change SimpleProducer to use async_send (async is reserved in py37) (#1454) | Dana Powers | 2018-03-23 | 1 | -4/+4 |
| | |||||
* | Fix skipped integration tests if KAFKA_VERSION unset (#1453) | Dana Powers | 2018-03-22 | 1 | -0/+6 |
| | |||||
* | Introduce new fixtures to prepare for migration to pytest. | Andre Araujo | 2018-02-21 | 1 | -19/+45 |
| | | | | | | | This commits adds new pytest fixtures in prepation for the migration of unittest.TestCases to pytest test cases. The handling of temporary dir creation was also changed so that we can use the pytest tmpdir fixture after the migration. | ||||
* | Reduce batch time in producer integration test (speedup test) | Dana Powers | 2016-04-08 | 1 | -2/+5 |
| | |||||
* | Update imports from kafka.common -> kafka.errors / kafka.structs | Dana Powers | 2016-04-05 | 1 | -4/+2 |
| | |||||
* | Remove errant kafka_versions('all') from 0.9 merge | Dana Powers | 2016-01-07 | 1 | -1/+0 |
| | |||||
* | Merge branch '0.9' | Dana Powers | 2016-01-07 | 1 | -3/+4 |
|\ | | | | | | | | | | | | | | | Conflicts: kafka/codec.py kafka/version.py test/test_producer.py test/test_producer_integration.py | ||||
| * | Remove bytes encoding for topic name in producer integration test | Dana Powers | 2015-12-10 | 1 | -1/+1 |
| | | |||||
| * | Drop kafka_bytestring | Dana Powers | 2015-12-10 | 1 | -2/+2 |
| | | |||||
| * | Update references to kafka.common Request/Response (now Payload) | Dana Powers | 2015-12-09 | 1 | -3/+3 |
| | | |||||
* | | Add producer integration test for SimpleProducer handling new topic creation | Dana Powers | 2015-12-16 | 1 | -9/+6 |
| | | |||||
* | | Refactor kafka_versions to support arbitrary operators (> >= < <= ! =)kafka_version_tests | Dana Powers | 2015-12-10 | 1 | -20/+1 |
|/ | |||||
* | Use producer.stop() to flush messages in async producer test | Dana Powers | 2015-12-05 | 1 | -4/+2 |
| | |||||
* | Add KeyedProducer test with null payloads | Viktor Shlapakov | 2015-06-17 | 1 | -0/+22 |
| | |||||
* | Import style nits in integration tests | Dana Powers | 2015-06-08 | 1 | -0/+1 |
| | |||||
* | Merge pull request #379 from dpkp/deprecate_keyed_producer_send | Dana Powers | 2015-06-08 | 1 | -10/+10 |
|\ | | | | | Deprecate KeyedProducer.send in favor of send_messages | ||||
| * | Deprecate KeyedProducer.send in favor of send_messages -- keep interface ↵ | Dana Powers | 2015-05-17 | 1 | -10/+10 |
| | | | | | | | | consistent | ||||
* | | Deprecate async producer batch_send kwarg -- use 'async' instead | Dana Powers | 2015-06-06 | 1 | -2/+2 |
| | | |||||
* | | Small hanging indent style nits in some producer integration tests | Dana Powers | 2015-06-06 | 1 | -4/+8 |
| | | |||||
* | | test_batched_simple_producer__triggers_by_message should wait for producer ↵ | Dana Powers | 2015-06-06 | 1 | -0/+10 |
|/ | | | | queue to drain before testing messages were sent | ||||
* | Make external API consistently support python3 strings for topic. | Space | 2015-04-03 | 1 | -2/+2 |
| | |||||
* | Correct message keys for async batching mode | Viktor Shlapakov | 2015-02-25 | 1 | -8/+8 |
| | |||||
* | Reorganize producer integration tests; protect against non-sorted partition ↵ | Dana Powers | 2015-02-09 | 1 | -121/+160 |
| | | | | metadata | ||||
* | Use a different topic for each producer integration test for isolation | Dana Powers | 2015-02-09 | 1 | -1/+0 |
| | |||||
* | Updated unittests to explicitly set random_start value | Alex Couture-Beil | 2015-01-09 | 1 | -15/+21 |
| | |||||
* | Merge conflict w/ assertEqual (assertEquals deprecated) | Dana Powers | 2014-12-15 | 1 | -10/+10 |
| | |||||
* | Fixed TestKafkaProducerIntegration | Lou Marvin Caraig | 2014-11-26 | 1 | -17/+25 |
| | |||||
* | Use b''.join([]) instead of += to speedup code | Dana Powers | 2014-09-10 | 1 | -0/+2 |
| | |||||
* | Merge pull request #223 from dpkp/metadata_refactor | Dana Powers | 2014-09-08 | 1 | -2/+4 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | Refactor internal metadata dicts in KafkaClient | Dana Powers | 2014-09-01 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | - use helper methods not direct access - add get_partition_ids_for_topic - check for topic and partition errors during load_metadata_for_topics - raise LeaderNotAvailableError when topic is being auto-created or UnknownTopicOrPartitionError if auto-creation off | ||||
* | | Merge pull request #227 from wizzat-feature/py3 | Dana Powers | 2014-09-07 | 1 | -12/+22 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 more tests, only multiprocessing consumer ones remaining | Bruno Renié | 2014-09-03 | 1 | -10/+20 |
| | | | |||||
| * | | More bytes topics | Bruno Renié | 2014-09-03 | 1 | -1/+1 |
| | | | |||||
| * | | Make all unit tests pass on py3.3/3.4 | Bruno Renié | 2014-09-03 | 1 | -2/+2 |
| |/ | |||||
* | | Cleanup tests: no more import *; remove unused | Dana Powers | 2014-09-04 | 1 | -7/+2 |
| | | |||||
* | | Import cleanups in tests | Dana Powers | 2014-09-04 | 1 | -4/+11 |
|/ | |||||
* | Fix Py26 test cases | Mark Roberts | 2014-05-22 | 1 | -1/+1 |
| | |||||
* | Handle New Topic Creation | Mark Roberts | 2014-05-22 | 1 | -0/+9 |
| | | | | | Adds ensure_topic_exists to KafkaClient, redirects test case to use that. Fixes #113 and fixes #150. | ||||
* | Merge branch 'master' into add_tests | Mark Roberts | 2014-05-06 | 1 | -6/+24 |
| | | | | | | | | | | kafka/client.py contained duplicate copies of same refactor, merged. Move test/test_integration.py changes into test/test_producer_integration. Conflicts: kafka/client.py servers/0.8.0/kafka-src test/test_integration.py | ||||
* | Fix Python 2.6 support | Mark Roberts | 2014-04-23 | 1 | -1/+0 |
| | |||||
* | Split out kafka version environments, default tox no longer runs any ↵ | Mark Roberts | 2014-04-23 | 1 | -2/+25 |
| | | | | integration tests, make skipped integration also skip setupClass, implement rudimentary offset support in consumer.py | ||||
* | Add test support for multiple versions of kafka. Uncomment first 0.8.1 ↵ | Mark Roberts | 2014-04-23 | 1 | -2/+2 |
| | | | | specific test. Add rudimentary (failing) consumer resumption test | ||||
* | Update fixtures to eliminate extraneous logging on non-errors, split out ↵ | Mark Roberts | 2014-04-22 | 1 | -0/+1 |
| | | | | mostly unrelated service.py, fix test in client_integration to use get_open_port, fix unintended import cascade in test_producer_integration | ||||
* | Split up and speed up producer based integration tests | Mark Roberts | 2014-04-17 | 1 | -71/+295 |
| |