Skip to content

Commit e358357

Browse files
author
Dana Powers
committed
Add kafka 0.8.1.1 to integration tests.
- 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.
1 parent d629b57 commit e358357

File tree

6 files changed

+5
-18
lines changed

6 files changed

+5
-18
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
-
1010
- KAFKA_VERSION=0.8.0
1111
- KAFKA_VERSION=0.8.1
12+
- KAFKA_VERSION=0.8.1.1
1213

1314
before_install:
1415
- sudo apt-get install libsnappy-dev

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,5 @@ Then run the tests against supported Kafka versions:
204204
```shell
205205
KAFKA_VERSION=0.8.0 tox
206206
KAFKA_VERSION=0.8.1 tox
207+
KAFKA_VERSION=0.8.1.1 tox
207208
```

build_integration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ -z "$SCALA_VERSION" ]; then
44
SCALA_VERSION=2.8.0
55
fi
66
if [ -z "$KAFKA_VERSION" && -z "$TRAVIS" ]; then
7-
KAFKA_VERSION="0.8.0 0.8.1"
7+
KAFKA_VERSION="0.8.0 0.8.1 0.8.1.1"
88
fi
99
pushd servers
1010
mkdir -p dist

test/fixtures.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,6 @@ def download_official_distribution(cls,
6060
def test_resource(cls, filename):
6161
return os.path.join(cls.project_root, "servers", cls.kafka_version, "resources", filename)
6262

63-
@classmethod
64-
def test_classpath(cls):
65-
# ./kafka-src/bin/kafka-run-class.sh is the authority.
66-
jars = ["."]
67-
68-
# 0.8.0 build path, should contain the core jar and a deps jar
69-
jars.extend(glob.glob(cls.kafka_root + "/core/target/scala-%s/*.jar" % cls.scala_version))
70-
71-
# 0.8.1 build path, should contain the core jar and several dep jars
72-
jars.extend(glob.glob(cls.kafka_root + "/core/build/libs/*.jar"))
73-
jars.extend(glob.glob(cls.kafka_root + "/core/build/dependant-libs-%s/*.jar" % cls.scala_version))
74-
75-
jars = filter(os.path.exists, map(os.path.abspath, jars))
76-
return ":".join(jars)
77-
7863
@classmethod
7964
def kafka_run_class_args(cls, *args):
8065
result = [os.path.join(cls.kafka_root, 'bin', 'kafka-run-class.sh')]

test/test_client_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_consume_none(self):
5353
# Offset Tests #
5454
####################
5555

56-
@kafka_versions("0.8.1")
56+
@kafka_versions("0.8.1", "0.8.1.1")
5757
def test_commit_fetch_offsets(self):
5858
req = OffsetCommitRequest(self.topic, 0, 42, "metadata")
5959
(resp,) = self.client.send_offset_commit_request("group", [req])

test/test_consumer_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_huge_messages(self):
213213

214214
big_consumer.stop()
215215

216-
@kafka_versions("0.8.1")
216+
@kafka_versions("0.8.1", "0.8.1.1")
217217
def test_offset_behavior__resuming_behavior(self):
218218
msgs1 = self.send_messages(0, range(0, 100))
219219
msgs2 = self.send_messages(1, range(100, 200))

0 commit comments

Comments
 (0)