summaryrefslogtreecommitdiff
path: root/test/fixtures.py
Commit message (Collapse)AuthorAgeFilesLines
* Generate SSL certificates for local testing (#1756)Dana Powers2019-03-211-0/+29
| | | This doesn't fully implement SSL fixtures, but as a first step it should help with automatically generating required certificates / keystores / etc. My hope is that this helps generate more community support for SSL testing!
* Do network connections and writes in KafkaClient.poll() (#1729)Dana Powers2019-03-081-3/+4
| | | | | | * Add BrokerConnection.send_pending_requests to support async network sends * Send network requests during KafkaClient.poll() rather than in KafkaClient.send() * Dont acquire lock during KafkaClient.send if node is connected / ready * Move all network connection IO into KafkaClient.poll()
* Use Popen.communicate() instead of Popen.wait()Brian Sang2019-01-051-9/+10
| | | | | Popen objects may deadlock when using stdout=PIPE or stderr=PIPE with Popen.wait(). Using Popen.communicate() avoids the issue.
* Be explicit with tuples for %s formattingJeff Widman2018-11-181-4/+4
| | | | Fix #1633
* Remove unused ivy_root variableJeff Widman2018-10-271-1/+0
| | | | This is no longer used anywhere in the codebase
* Vendor `six` consistentlyJeff Widman2018-10-221-3/+3
| | | | Use vendored `six`, and also `six.moves.range` rather than `xrange`
* Introduce new fixtures to prepare for migration to pytest.Andre Araujo2018-02-211-62/+237
| | | | | | | 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.
* Increase some integration test timeouts (#1374)Dana Powers2018-02-081-2/+4
|
* Use 0.11.0.2 kafka broker for integration testing (#1357)Dana Powers2018-01-251-1/+1
|
* Minor Exception cleanupJeff Widman2017-12-121-2/+2
|
* Change fixture default host to localhost (#1305)Andre Araujo2017-12-051-15/+1
|
* Add fixture support for upcoming 1.0.0 broker release (#1275)Dana Powers2017-10-231-2/+6
|
* Update to 0.11.0.1 for travis test fixture; use as default if unspecified ↵Dana Powers2017-10-081-1/+1
| | | | (#1244)
* Dump fixture logs on failureDana Powers2016-08-041-0/+2
|
* Try to bind to a new port on fixture failure retriesDana Powers2016-08-041-29/+21
|
* Always absolute_importabsolute_importDana Powers2016-08-021-0/+2
|
* Allow setting host interface in KafkaFixture.instanceDana Powers2016-04-251-2/+4
|
* More thorough IPv6 support that uses getaddrinfo to resolve namesJames Brown2016-04-241-2/+16
| | | | Fixes #641
* Attempt to add ssl support to kafka fixturesssl_supportDana Powers2016-04-091-4/+10
|
* Re-render fixture config in restart loop if necessaryDana Powers2016-03-141-0/+10
|
* More fixture logging improvementsDana Powers2016-03-141-7/+8
| | | | | | | | - Add test logging NullHandler - Remove default logging level filtering in testutil - Log render_template info - More fixture logging cleanups - wait_for() should not handle child shutdown
* Fixup test fixtures for pylintDana Powers2016-03-131-1/+10
|
* Improve Fixture loggingDana Powers2016-03-131-3/+7
| | | | | | | - remove double console appenders from log4j.properties - also log to server.log file for interactive uses - drop internal _spawn from SpawnedService loop - write captured stdout/stderr directly to avoid logger re-formatting
* Sync rendered fixture templates to disk to avoid racesDana Powers2016-03-121-0/+8
|
* Improve Zookeeper / Kafka Fixture managementDana Powers2016-03-121-4/+21
| | | | | | - spawn fixtures via daemon threads - close fixtures atexit and in __del__ to avoid interpreter hangs - raise Exception on timeouts in open()
* Support setting kafka instance port explicitly in fixtureDana Powers2016-02-151-3/+7
|
* Move pytest broker/zk fixtures to test.conftestDana Powers2016-01-241-1/+2
|
* pylint fixesDana Powers2015-12-101-1/+1
| | | | | | - temporarily ignore kafka/consumer/group.py - temporarily ignore test/test_protocol.py - disable-msg deprecated; use disable= instead
* new pylint disables for pylint 1.5.1Zack Dever2015-12-021-1/+1
| | | | | tested locally with `pylint --rcfile=pylint.rc -E kafka test`. should pass travis builds.
* Increase timeout and backoff when retrying spawn of test fixturesDana Powers2015-06-111-2/+16
|
* Create a new child thread on each open fixture tryDana Powers2015-06-091-6/+7
|
* Retry with shorter 5sec timeout when trying to open() fixturesDana Powers2015-06-081-4/+10
| | | | | - this is intended to reduce flapping tests caused by intermittent - fixture startup issues on travis-ci
* Module loggers in test/fixtures and test/serviceDana Powers2015-06-061-19/+23
|
* Change ZookeeperFixture wait_for regex to support newer zk version used with ↵Dana Powers2015-01-141-1/+1
| | | | 0.8.2.0
* Fix KafkaFixture child stdout / stderr captureDana Powers2015-01-141-2/+2
|
* Make all unit tests pass on py3.3/3.4Bruno Renié2014-09-031-5/+5
|
* Add pylint to tox.ini; test both kafka and test; default to error-checking ↵Dana Powers2014-08-251-27/+22
| | | | only; fixup errors; skip kafka/queue.py
* Add kafka 0.8.1.1 to integration tests.Dana Powers2014-08-131-15/+0
| | | | | | - previous 0.8.1 src appears to have actually been 0.8.1.1 based on git submodule commit. So technically this adds back 0.8.1 to the test suite.
* Use kafka_run_class_env() to set environment vars in test fixturesDana Powers2014-08-121-16/+14
|
* Download official binaries from apache.org for integration testsDana Powers2014-08-121-1/+5
|
* Add Fixtures.download_official_distribution to get binaries from apache.orgDana Powers2014-08-121-0/+39
|
* Attempt to fix travis build. Decrease complexity of service.py in favor of ↵Mark Roberts2014-05-061-4/+0
| | | | in memory logging. Address code review concerns
* Add test support for multiple versions of kafka. Uncomment first 0.8.1 ↵Mark Roberts2014-04-231-2/+2
| | | | specific test. Add rudimentary (failing) consumer resumption test
* Add support for kafka 0.8.1Mark Roberts2014-04-231-1/+5
|
* Move kafka-src to servers/0.8.0/kafka-src, move test/resources to ↵Mark Roberts2014-04-231-3/+4
| | | | servers/0.8.0/resources, update fixtures, add build_integration.sh for getting started with development
* Update fixtures to eliminate extraneous logging on non-errors, split out ↵Mark Roberts2014-04-221-215/+85
| | | | mostly unrelated service.py, fix test in client_integration to use get_open_port, fix unintended import cascade in test_producer_integration
* Some cleanup and easier to read test fixture outputOmar Ghishan2014-01-071-4/+4
|
* Add object type and ID to message prefix in fixtures output for easier debuggingOmar Ghishan2014-01-061-15/+21
|
* Handle starting/stopping Kafka brokers that are already started/stopped in ↵Omar Ghishan2014-01-061-0/+11
| | | | | | | integration tests If some of the tests stop brokers then error out, the teardown method will try to close the same brokers and fail. This change allows it to continue.
* Set host and port in ExternalService test fixtureDavid Arthur2013-11-111-0/+2
| | | | | So we can run tests against an already running Kafka instance KAFKA_URI=tcp://localhost:9092 python -m test.test_integration