37c0ae18dd
The kafka functional tests don't use our setup framework but hardcode the kafka url. The kafka driver is broken and currently try to be loaded with other driver tests (and break py3 gate job). This change remove the hardcoded stuff and uses the normal functional tests setup to check kafka. This avoids kafka tests to be ran on other driver tests job. It also creates the tox target for functional tests and use pifpaf to setup kafka. As today, the functional test suite doesn't work all. Change-Id: Ie6af35321905a04b38e549bf7268dd40543d9e3a
17 lines
440 B
Bash
Executable File
17 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
. tools/functions.sh
|
|
|
|
DATADIR=$(mktemp -d /tmp/OSLOMSG-KAFKA.XXXXX)
|
|
trap "clean_exit $DATADIR" EXIT
|
|
|
|
SCALA_VERSION="2.11"
|
|
KAFKA_VERSION="0.10.1.0"
|
|
tarball=kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz
|
|
|
|
wget http://apache.crihan.fr/dist/kafka/${KAFKA_VERSION}/$tarball -O $DATADIR/$tarball
|
|
tar -xzf $DATADIR/$tarball -C $DATADIR
|
|
export PATH=$DATADIR/kafka_${SCALA_VERSION}-${KAFKA_VERSION}/bin:$PATH
|
|
pifpaf run kafka -- $*
|