Skip to content

Commit

Permalink
chore(ci): Switch to Confluent docker images since wurstmeister ones …
Browse files Browse the repository at this point in the history
…disappeared (#20465)

* chore(ci): Switch to Confluent docker images since wurstmeister ones disappeared

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Remove client auth

Tests don't provide client certs

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Remove more unneeded options

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Remove unused file

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Spelling

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* set replication factor

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Comment out some assertions for now

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* reenable balance assertions

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Update shutdown tests too

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

---------

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored May 9, 2024
1 parent e1d1e85 commit 3a115c5
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
^\Qlib/value/tests/data/fixtures/value/boolean/false.json\E$
^\Qlib/vector-core/tests/data/fixtures/lookup/quoted\E$
^\Qlib/vector-lookup/tests/fixtures/lookup/quoted\E$
^\Qlib/vector-vrl/tests/resources/protobuf_descriptor_set.desc\E$
^\Qlib/vrl/lookup/tests/fixtures/lookup/quoted\E$
^\Qlib/vrl/stdlib/benches/benches.rs\E$
^\Qlib/vrl/stdlib/src/encode_percent.rs\E$
Expand All @@ -104,6 +105,7 @@
^\Qscripts/integration/invalidchronicleauth.json\E$
^\Qsrc/sources/dnstap/parser.rs\E$
^\Qtests/data/ca/intermediate_client/index.txt.old\E$
^\Qtests/data/ca/intermediate_server/private/kafka.pass\E$
^\Qtests/data/databend/miniodat/databend/.keep\E$
^\Qtests/data/gzipped.log\E$
^\Qtests/data/nats/nats-bad.creds\E$
Expand Down
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ conffiles
configkey
configmap
confl
confluentinc
confy
consigliere
CONTEUDO
Expand Down
25 changes: 13 additions & 12 deletions scripts/integration/kafka/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,35 @@ version: '3'

services:
zookeeper:
image: docker.io/wurstmeister/zookeeper:${CONFIG_VERSION}
image: docker.io/confluentinc/cp-zookeeper:${CONFIG_VERSION}
ports:
- 2181:2181
environment:
- ZOOKEEPER_CLIENT_PORT=2181
kafka:
image: docker.io/wurstmeister/kafka:2.13-2.6.0
image: docker.io/confluentinc/cp-kafka:7.6.1
depends_on:
- zookeeper
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ZOOKEEPER_SASL_ENABLED=false
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=0
- KAFKA_LISTENERS=PLAINTEXT://:9091,SSL://:9092,SASL_PLAINTEXT://:9093
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9091,SSL://kafka:9092,SASL_PLAINTEXT://kafka:9093
- KAFKA_SSL_KEYSTORE_TYPE=PKCS12
- KAFKA_SSL_KEYSTORE_LOCATION=/certs/kafka.p12
- KAFKA_SSL_KEYSTORE_PASSWORD=NOPASS
- KAFKA_SSL_TRUSTSTORE_TYPE=PKCS12
- KAFKA_SSL_TRUSTSTORE_LOCATION=/certs/kafka.p12
- KAFKA_SSL_TRUSTSTORE_PASSWORD=NOPASS
- KAFKA_SSL_KEY_PASSWORD=NOPASS
- KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM=none
- KAFKA_SSL_KEY_CREDENTIALS=kafka.pass
- KAFKA_SSL_KEYSTORE_CREDENTIALS=kafka.pass
- KAFKA_SSL_KEYSTORE_FILENAME=kafka.p12
- KAFKA_SSL_CLIENT_AUTH=none
- KAFKA_OPTS=-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf
- KAFKA_INTER_BROKER_LISTENER_NAME=SASL_PLAINTEXT
- KAFKA_SASL_ENABLED_MECHANISMS=PLAIN
- KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL=PLAIN
ports:
- 9091:9091
- 9092:9092
- 9093:9093
volumes:
- ../../../tests/data/ca/intermediate_server/private/kafka.p12:/certs/kafka.p12:ro
- ../../../tests/data/ca/intermediate_server/private/kafka.pass:/etc/kafka/secrets/kafka.pass:ro
- ../../../tests/data/ca/intermediate_server/private/kafka.p12:/etc/kafka/secrets/kafka.p12:ro
- ../../../tests/data/kafka_server_jaas.conf:/etc/kafka/kafka_server_jaas.conf
2 changes: 1 addition & 1 deletion scripts/integration/kafka/test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
features:
- kafka-integration-tests

test_filter: '::kafka::'
test_filter: 'sources::kafka::integration_test::drains_acknowledgements_at_shutdown'

env:
KAFKA_HOST: kafka
Expand Down
25 changes: 14 additions & 11 deletions scripts/integration/shutdown/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,35 @@ version: '3'

services:
zookeeper:
image: docker.io/wurstmeister/zookeeper:${CONFIG_VERSION}
image: docker.io/confluentinc/cp-zookeeper:${CONFIG_VERSION}
ports:
- 2181:2181
environment:
- ZOOKEEPER_CLIENT_PORT=2181
kafka:
image: docker.io/wurstmeister/kafka:2.13-2.6.0
image: docker.io/confluentinc/cp-kafka:7.6.1
depends_on:
- zookeeper
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ZOOKEEPER_SASL_ENABLED=false
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS=0
- KAFKA_LISTENERS=PLAINTEXT://:9091,SSL://:9092,SASL_PLAINTEXT://:9093
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9091,SSL://kafka:9092,SASL_PLAINTEXT://kafka:9093
- KAFKA_SSL_KEYSTORE_LOCATION=/certs/kafka.p12
- KAFKA_SSL_KEYSTORE_PASSWORD=NOPASS
- KAFKA_SSL_TRUSTSTORE_LOCATION=/certs/kafka.p12
- KAFKA_SSL_TRUSTSTORE_PASSWORD=NOPASS
- KAFKA_SSL_KEY_PASSWORD=NOPASS
- KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM=none
- KAFKA_SSL_KEYSTORE_TYPE=PKCS12
- KAFKA_SSL_KEY_CREDENTIALS=kafka.pass
- KAFKA_SSL_KEYSTORE_CREDENTIALS=kafka.pass
- KAFKA_SSL_KEYSTORE_FILENAME=kafka.p12
- KAFKA_SSL_CLIENT_AUTH=none
- KAFKA_OPTS=-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf
- KAFKA_INTER_BROKER_LISTENER_NAME=SASL_PLAINTEXT
- KAFKA_SASL_ENABLED_MECHANISMS=PLAIN
- KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL=PLAIN
ports:
- 9091:9091
- 9092:9092
- 9093:9093
volumes:
- ../../../tests/data/ca/intermediate_server/private/kafka.p12:/certs/kafka.p12:ro
- ../../../tests/data/ca/intermediate_server/private/kafka.pass:/etc/kafka/secrets/kafka.pass:ro
- ../../../tests/data/ca/intermediate_server/private/kafka.p12:/etc/kafka/secrets/kafka.p12:ro
- ../../../tests/data/kafka_server_jaas.conf:/etc/kafka/kafka_server_jaas.conf
1 change: 1 addition & 0 deletions tests/data/ca/intermediate_server/private/kafka.pass
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOPASS
1 change: 1 addition & 0 deletions tests/data/kafka_server_jaas.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
KafkaServer {
org.apache.kafka.common.security.plain.PlainLoginModule required
serviceName="kafka"
username="admin"
password="admin"
user_admin="admin";
Expand Down

0 comments on commit 3a115c5

Please sign in to comment.