Skip to content

Commit

Permalink
Merge pull request #621 from fede1024/scanterog/update-kafka-for-inte…
Browse files Browse the repository at this point in the history
…gration-tests

Add support for kafka 3.5 in integration tests
  • Loading branch information
scanterog committed Nov 1, 2023
2 parents be26f99 + 67d91e6 commit 93e6cd4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
fail-fast: false
matrix:
include:
- confluent-version: 7.5.1
kafka-version: 3.5
- confluent-version: 5.3.1
kafka-version: 2.3
- confluent-version: 5.0.3
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
kafka:
image: confluentinc/cp-kafka:${CONFLUENT_VERSION:-5.3.1}
image: confluentinc/cp-kafka:${CONFLUENT_VERSION:-7.5.1}
environment:
- KAFKA_BROKER_ID=0
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
Expand All @@ -16,7 +16,7 @@ services:
links: [zookeeper]

zookeeper:
image: confluentinc/cp-zookeeper:${CONFLUENT_VERSION:-5.3.1}
image: confluentinc/cp-zookeeper:${CONFLUENT_VERSION:-7.5.1}
environment:
- ZOOKEEPER_CLIENT_PORT=2181
ports: ["2181:2181"]
7 changes: 6 additions & 1 deletion tests/test_admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,14 @@ async fn test_topics() {
is_default: false,
is_sensitive: false,
};
let default_max_msg_bytes = if get_broker_version() <= KafkaVersion(2, 3, 0, 0) {
"1000012"
} else {
"1048588"
};
let expected_entry2 = ConfigEntry {
name: "max.message.bytes".into(),
value: Some("1000012".into()),
value: Some(default_max_msg_bytes.into()),
source: ConfigSource::Default,
is_read_only: false,
is_default: true,
Expand Down

0 comments on commit 93e6cd4

Please sign in to comment.