mirror of https://github.com/apache/kafka.git
KAFKA-10592: Fix vagrant for a system tests with python3
Fix vagrant for a system tests with a python3. Author: Nikolay Izhikov <nizhikov@apache.org> Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com> Closes #9480 from nizhikov/KAFKA-10592
This commit is contained in:
parent
94820ca652
commit
c8c1baf4e1
|
@ -404,9 +404,9 @@ https://cwiki.apache.org/confluence/display/KAFKA/tutorial+-+set+up+and+run+Kafk
|
||||||
* Install system test dependencies, including ducktape, a command-line tool and library for testing distributed systems. We recommend to use virtual env for system test development
|
* Install system test dependencies, including ducktape, a command-line tool and library for testing distributed systems. We recommend to use virtual env for system test development
|
||||||
|
|
||||||
$ cd kafka/tests
|
$ cd kafka/tests
|
||||||
$ virtualenv venv
|
$ virtualenv -p python3 venv
|
||||||
$ . ./venv/bin/activate
|
$ . ./venv/bin/activate
|
||||||
$ python setup.py develop
|
$ python3 setup.py develop
|
||||||
$ cd .. # back to base kafka directory
|
$ cd .. # back to base kafka directory
|
||||||
|
|
||||||
* Run the bootstrap script to set up Vagrant for testing
|
* Run the bootstrap script to set up Vagrant for testing
|
||||||
|
@ -482,7 +482,7 @@ the test driver machine.
|
||||||
|
|
||||||
* Start by making sure you're up to date, and install git and ducktape:
|
* Start by making sure you're up to date, and install git and ducktape:
|
||||||
|
|
||||||
$ sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get install -y python-pip git
|
$ sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get install -y python3-pip git
|
||||||
$ pip install ducktape
|
$ pip install ducktape
|
||||||
|
|
||||||
* Get Kafka:
|
* Get Kafka:
|
||||||
|
@ -548,7 +548,7 @@ Where are the unit tests?
|
||||||
|
|
||||||
How do I run the unit tests?
|
How do I run the unit tests?
|
||||||
* cd kafka/tests # The base system test directory
|
* cd kafka/tests # The base system test directory
|
||||||
* python setup.py test
|
* python3 setup.py test
|
||||||
|
|
||||||
How can I add a unit test?
|
How can I add a unit test?
|
||||||
* Follow the naming conventions - module name starts with "check", class name begins with "Check", test method name begins with "check"
|
* Follow the naming conventions - module name starts with "check", class name begins with "Check", test method name begins with "check"
|
||||||
|
|
|
@ -51,7 +51,7 @@ setup(name="kafkatest",
|
||||||
license="apache2.0",
|
license="apache2.0",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=["ducktape==0.7.9", "requests==2.22.0"],
|
install_requires=["ducktape==0.8.0", "requests==2.24.0"],
|
||||||
tests_require=["pytest", "mock"],
|
tests_require=["pytest", "mock"],
|
||||||
cmdclass={'test': PyTest},
|
cmdclass={'test': PyTest},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue