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:
Nikolay Izhikov 2020-10-25 01:09:16 +05:30 committed by Manikumar Reddy
parent 94820ca652
commit c8c1baf4e1
2 changed files with 5 additions and 5 deletions

View File

@ -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
$ cd kafka/tests
$ virtualenv venv
$ virtualenv -p python3 venv
$ . ./venv/bin/activate
$ python setup.py develop
$ python3 setup.py develop
$ cd .. # back to base kafka directory
* 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:
$ 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
* Get Kafka:
@ -548,7 +548,7 @@ Where are the unit tests?
How do I run the unit tests?
* cd kafka/tests # The base system test directory
* python setup.py test
* python3 setup.py 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"

View File

@ -51,7 +51,7 @@ setup(name="kafkatest",
license="apache2.0",
packages=find_packages(),
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"],
cmdclass={'test': PyTest},
)